REGEXP (Lakehouse v1)
Renvoie true si la chaîne <expr> correspond à l’expression régulière définie par le <pattern>, false sinon.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »<column>.regexp_match(<pattern>)Exemples Analyze
Section intitulée « Exemples Analyze »With an input table of:┌─────────────────┐│ my_clothes │├─────────────────┤│ plaid pants ││ plaid hat ││ plaid shirt ││ shoes │└─────────────────┘
my_clothes.regexp_match('p*')┌───────────────────────────────┐│ my_clothes.regexp_match('p*') │├───────────────────────────────┤│ true ││ true ││ true ││ false │└───────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »<expr> REGEXP <pattern>Exemples SQL
Section intitulée « Exemples SQL »SELECT 'databend' REGEXP 'd*', 'databend' RLIKE 'd*';
┌────────────────────────────────────────────────────┐│ ('databend' regexp 'd*') │ ('databend' rlike 'd*') │├──────────────────────────┼─────────────────────────┤│ true │ true │└────────────────────────────────────────────────────┘