Hello,
Need some help with REGEXP_REPLACE usage, when you have Set of Characters that you want to replace like as follows.
Remove ASCII 1-31
Replace long dash/Em dash with short dash/En dash = replace CHR(151) with CHR(150)
Replace left/right double quotes with double quotes = replace CHR(147) & CHR(148) with CHR(34)
Replace left/right single quote with single quote = replace CHR(145) & CHR(146) with CHR(39)
with MYSQL as
(select 'CSC‐113026 - Cisco Systems Capital Corporation' V_STRING
from DUAL)
select V_STRING,ASCIISTR(V_STRING),
--REGEXP_REPLACE(V_STRING,'[' ||UNISTR('\00e200900090')|| ']'),
--REGEXP_REPLACE(V_STRING,'[' ||unistr('\2010')|| ']','-'),
REGEXP_REPLACE(V_STRING,'['||chr(1)||'-'||chr(31)||']','')
--REGEXP_REPLACE((REGEXP_REPLACE(V_STRING,'['||chr(1)||'-'||chr(31)||']','')),'['||chr(151)||']',chr(150))
from MYSQL
Thanks,
Sabegh