Skip to content

Replaces substrings matching a regular expression pattern with a replacement string.

func.regexp_replace(<str>, <pattern>, <replacement>)
func.regexp_replace('hello world', '\\s+', ' ')
┌───────────────┐
'hello world'
└───────────────┘
REGEXP_REPLACE(<str>, <pattern>, <replacement>)
SELECT REGEXP_REPLACE('hello world', '\\s+', ' ');
┌─────────────┐
│ hello world │
└─────────────┘