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>)SQL 示例
Section titled “SQL 示例”SELECT REGEXP_REPLACE('hello world', '\\s+', ' ');
┌─────────────┐│ hello world │└─────────────┘