コンテンツにスキップ

正規表現パターンに一致する部分文字列を、置換文字列に置き換えます。

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