REGEXP_REPLACE
Replace regex matches in a string. This function substitutes occurrences of a pattern with a specified replacement string.
Syntax
REGEXP_REPLACE(subject, pattern, replace)Description
Examples
SELECT REGEXP_REPLACE('ab12cd','[0-9]','') AS remove_digits;
-> abcd
SELECT REGEXP_REPLACE('<html><head><title>title</title><body>body</body></htm>', '<.+?>',' ')
AS strip_html;
-> title bodyLast updated
Was this helpful?

