Skip to content
Advertisement

How to include the code into a REPLACE function in oracle?

User @psaraj12 helped me with a ticket here about finding ascii character in a string in my DB with the following code:

The script looks for characters of a certain range GROUPs them and marks displays them.

Is it possible to include this in a REPLACE statement of a similar sort:

EDIT: As per @flyaround answer this is the code I use changed a little bit:

Advertisement

Answer

Coming back to your original code, because my suggested REGEX_REPLACE is not working sufficient with high surrogates. Your approach is already very effective, so I jumped into it to have a solution here.

On MERGE you can’t use the referencing column for an update. Therefore you should use the unique key (I used ‘id’ in my example) of your table.

The resulting value will be ‘L..D’ for your example value of ‘L.ô€ˆ‰.D.’

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement