REGEXP_REPLACE (Lakehouse v2)
Replaces substrings matching a regular expression pattern with a replacement string.
Analyze Syntax
Section titled “Analyze Syntax”func.regexp_replace(<str>, <pattern>, <replacement>)Analyze Examples
Section titled “Analyze Examples”func.regexp_replace('hello world', '\\s+', ' ')
┌───────────────┐│ 'hello world' │└───────────────┘SQL Syntax
Section titled “SQL Syntax”REGEXP_REPLACE(<str>, <pattern>, <replacement>)SQL Examples
Section titled “SQL Examples”SELECT REGEXP_REPLACE('hello world', '\\s+', ' ');
┌─────────────┐│ hello world │└─────────────┘