Zum Inhalt springen

Gibt 1 zurück, wenn die Zeichenfolge expr nicht zum durch das Muster pat angegebenen regulären Ausdruck passt, andernfalls 0.

not_(<column>.regexp_match(<pattern>))
With an input table of:
┌─────────────────┐
│ my_clothes │
├─────────────────┤
│ plaid pants │
│ plaid hat │
│ plaid shirt │
│ shoes │
└─────────────────┘
not_(my_clothes.regexp_match('p*'))
┌─────────────────────────────────────┐
│ not_(my_clothes.regexp_match('p*')) │
├─────────────────────────────────────┤
│ false │
│ false │
│ false │
│ true │
└─────────────────────────────────────┘
<expr> NOT REGEXP <pattern>
SELECT 'databend' NOT REGEXP 'd*';
┌──────────────────────────────┐
│ ('databend' not regexp 'd*') │
├──────────────────────────────┤
│ 0 │
└──────────────────────────────┘