For removing everything between parentheses, currently i use:
SELECT
REGEXP_REPLACE('(aaa) bbb (ccc (ddd) / eee)', "\\([^()]*\\)", "");
Which is incorrect, because it gives bbb (ccc / eee)
, as that removes inner parentheses only.
How to remove everynting between nested parentheses? so expected result from this example is bbb