I need to identify and replace all the control characters in a column with '' I tried using following query.
SELECT description, REGEXP_REPLACE(description, '[![:cntrl:]]', '') from table1;
It removes all the control characters along with the new line character. I need to sustain the new line character. I tried using something like following.
REGEXP_REPLACE(description, '[![:cntrl:]'||CHR(10)||CHR(13)||']', '')
But it didn't work. I would appreciate any help in right direction. Thanks in advance.