Problems / Replace Values / Editorial
Use REGEXP_REPLACE(phone, '[^0-9]', '', 'g') to strip everything that isn't a digit. The [^0-9] pattern matches any non-digit character, and the 'g' flag ensures all matches are replaced (not just the first).
REGEXP_REPLACE(phone, '[^0-9]', '', 'g')
[^0-9]
'g'
Alternatively, you could nest multiple REPLACE() calls, but regex is far cleaner.
REPLACE()
A simple REPLACE(email, 'mailto:', '') suffices since the prefix is a fixed string.
REPLACE(email, 'mailto:', '')
F.regexp_replace() replaces all occurrences by default (no 'g' flag needed).
F.regexp_replace()
Solve Replace Values yourself →