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