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
└────────────────────────────────────────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today