Files
doris/docs/en/sql-reference/sql-functions/string-functions/regexp/not_regexp.md
EmmyMiao87 15c5896f41 [Docs] Add like, regexp function documents (#6182)
* [Docs] Add like, regexp function documents

* Reconstruct

* Fix compile error
2021-07-15 13:16:21 +08:00

1.5 KiB

title, language
title language
not regexp en

not regexp

description

syntax

'BOOLEAN not regexp(VARCHAR str, VARCHAR pattern)'

Perform regular matching on the string str, return false if it matches, and return true if it doesn't match. pattern is a regular expression.

example

// Find all data in the k1 field that does not start with 'billie'
mysql> select k1 from test where k1 not regexp '^billie';
+--------------------+
| k1                 |
+--------------------+
| Emmy eillish       |
+--------------------+

// Find all the data in the k1 field that does not end with 'ok':
mysql> select k1 from test where k1 not regexp 'ok$';
+------------+
| k1         |
+------------+
| It's true  |
+------------+

keyword

REGEXP, NOT, NOT REGEXP