Skip to main content

REGEXP

Returns 1 if the string expr matches the regular expression specified by the pattern pat, 0 otherwise.

Syntax

<expr> REGEXP <pattern>

Examples

SELECT 'databend' REGEXP 'd*';
+--------------------------+
| ('databend' regexp 'd*') |
+--------------------------+
| 1 |
+--------------------------+
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today