REGEXP_REPLACE (Lakehouse v2)
Remplace les sous-chaînes correspondant à un motif d’expression régulière par une chaîne de remplacement.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.regexp_replace(<str>, <pattern>, <replacement>)Exemples Analyze
Section intitulée « Exemples Analyze »func.regexp_replace('hello world', '\\s+', ' ')
┌───────────────┐│ 'hello world' │└───────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »REGEXP_REPLACE(<str>, <pattern>, <replacement>)Exemples SQL
Section intitulée « Exemples SQL »SELECT REGEXP_REPLACE('hello world', '\\s+', ' ');
┌─────────────┐│ hello world │└─────────────┘