REGEXP_REPLACE (Lakehouse v2)
Substitui as substrings que correspondem a um padrão de expressão regular por uma string de substituição.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.regexp_replace(<str>, <pattern>, <replacement>)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.regexp_replace('hello world', '\\s+', ' ')
┌───────────────┐│ 'hello world' │└───────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”REGEXP_REPLACE(<str>, <pattern>, <replacement>)Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT REGEXP_REPLACE('hello world', '\\s+', ' ');
┌─────────────┐│ hello world │└─────────────┘