REGEXP_REPLACE (Lakehouse v2)
正規表現パターンに一致する部分文字列を、置換文字列に置き換えます。
Analyzeの構文
Section titled “Analyzeの構文”func.regexp_replace(<str>, <pattern>, <replacement>)Analyzeの例
Section titled “Analyzeの例”func.regexp_replace('hello world', '\\s+', ' ')
┌───────────────┐│ 'hello world' │└───────────────┘SQLの構文
Section titled “SQLの構文”REGEXP_REPLACE(<str>, <pattern>, <replacement>)SELECT REGEXP_REPLACE('hello world', '\\s+', ' ');
┌─────────────┐│ hello world │└─────────────┘