Zum Inhalt springen

Gibt true zurück, wenn die Zeichenfolge <expr> zum durch <pattern> angegebenen regulären Ausdruck passt, andernfalls false.

<column>.regexp_match(<pattern>)
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 │
└───────────────────────────────┘
<expr> REGEXP <pattern>
SELECT 'databend' REGEXP 'd*', 'databend' RLIKE 'd*';
┌────────────────────────────────────────────────────┐
│ ('databend' regexp 'd*') │ ('databend' rlike 'd*') │
├──────────────────────────┼─────────────────────────┤
│ true │ true │
└────────────────────────────────────────────────────┘