I find an example at oracle forum site :
Input string : a, b, c (x, y, z), a, (xx, yy, zz), x,
WITH t AS (SELECT 'a, b, c (x, y, z), a, (xx, yy, zz), x,' col1
FROM dual)
SELECT t.col1
, REGEXP_REPLACE(t.col1, '(\(.*?\))|,', '\1') new_col
FROM t
Output : a b c (x, y, z) a (xx, yy, zz) x
But i want to make opposite of that. Just remove this character , from inside () and remain outside.
Output : a, b, c (x y z), a, (xx yy zz), x,
,do you expect between the()?REGEXP_REPLACE. Mandatory comment: it doesn't look like data that should be raw in the database - specially if you're going to query it. Are you sure you cannot normalize it? (I know you probably can't at this point...)