I want to repair some data, which was uploaded using incorrect encoding. Consider the following example:
RUE DE SAN MARTI¦O N¦ 123
I want to replace the ¦ with say #, but only in cases when it's preceeded by a number or the character N
My desired output is:
RUE DE SAN MARTI¦O N# 123
I tried the following replace:
SELECT REGEXP_REPLACE('RUE DE SAN MARTI¦O N¦ 123','[\d]\¦|[N]\¦','#')
FROM dual;
which correctly detects the chacter to match, but from what I know replacement string is used as literal. However I want to preserve the N before ¦.
Has anyone had any luck solving similar issue?
