remove special characters and also make multiple space into single space
Hi am trying to get rid of special characters and make the multiple space occurence into single.
But using the below code I get rid of the multiple space but special characters are not getting replaced.
SELECT trim(REGEXP_REPLACE(REPLACE(testword, '', ' '),'(^[[:blank:]])*( ){2,}|([\\*;%&$´`€])|([_.+-,-\-.])*(([[:blank:]]*)IMAGE?$|RANGE?$)', ' ')) as testword,
from tableA
Can anybody tell me what is the correct pattern I need to use here.
Any suggestions.?