REGEXP (Lakehouse v1)
Devuelve true si la cadena <expr> coincide con la expresión regular especificada por <pattern>; de lo contrario, devuelve false.
Sintaxis de Analyze
Sección titulada «Sintaxis de Analyze»<column>.regexp_match(<pattern>)Ejemplos de Analyze
Sección titulada «Ejemplos de 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 │└───────────────────────────────┘Sintaxis SQL
Sección titulada «Sintaxis SQL»<expr> REGEXP <pattern>Ejemplos de SQL
Sección titulada «Ejemplos de SQL»SELECT 'databend' REGEXP 'd*', 'databend' RLIKE 'd*';
┌────────────────────────────────────────────────────┐│ ('databend' regexp 'd*') │ ('databend' rlike 'd*') │├──────────────────────────┼─────────────────────────┤│ true │ true │└────────────────────────────────────────────────────┘