跳转到内容

将与正则表达式模式匹配的子字符串替换为指定的替换字符串。

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 │
└─────────────┘