Oracle PL-SQL "Regular expression" to replace each "(space)and(space)" with ',' in a string
select regexp_replace('x=y and g=h and u=1','([[:space:]]*)and([[:space:]]*)', ',')
from dual;

REGEXP_REPL
-----------
x=y,g=h,u=1