REGEXP (Lakehouse v1)
Returns true if the string <expr> matches the regular expression specified by the <pattern>, false otherwise.
Analyze Syntax
Section titled “Analyze Syntax”<column>.regexp_match(<pattern>)Analyze Examples
Section titled “Analyze Examples”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 │└───────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”<expr> REGEXP <pattern>Aliases
Section titled “Aliases”SQL Examples
Section titled “SQL Examples”SELECT 'databend' REGEXP 'd*', 'databend' RLIKE 'd*';
┌────────────────────────────────────────────────────┐│ ('databend' regexp 'd*') │ ('databend' rlike 'd*') │├──────────────────────────┼─────────────────────────┤│ true │ true │└────────────────────────────────────────────────────┘