I have data in last_name
column.
This data comes from online and at times users are copy pasting the last name from a word document. This is a problem when a last name has a single quote. Somehow the single quote from a word document is weird.
I want to write an oracle regex replace in my select query such a way that it replaces everything in the last_name
column but just keeps (a-z or A-Z).
Is this doable?
finally I went with this:
REGEXP_REPLACE(mbr_last_name,'[^a-zA-Z'']','') replaced_last_name
I'm keeping a to z A to Z and a single quote
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With