I have a column in a datawarehouse task which needs replacing these characters:
"ABCDEFGHIJKLMNOPQRSTUVWXYZ\abcdefghijklmnopqrstuvwxyz" with nothing.
For example I have this form of data "88k77.22" and it should be "8877.22"
Does anyone know any particular function which can do this, or any workaround.
Thanks in advance
Use a regular expression
REGEXP_REPLACE(column, '[A-Za-z]*', '')
Is '\' supposed to be included as well? Then use
REGEXP_REPLACE(column, '[A-Za-z\]*', '')
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