Skip to main content

REGEXP

Returns true if the string <expr> matches the regular expression specified by the <pattern>, false otherwise.

Syntax

<expr> REGEXP <pattern>

Aliases

Examples

SELECT 'databend' REGEXP 'd*', 'databend' RLIKE 'd*';

┌────────────────────────────────────────────────────┐
('databend' regexp 'd*')('databend' rlike 'd*')
├──────────────────────────┼─────────────────────────┤
truetrue
└────────────────────────────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today