📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

REGEXP



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

Syntax

<expr> REGEXP <pattern>

Aliases

Examples

SELECT 'datalake' REGEXP 'd*', 'datalake' RLIKE 'd*'; ┌────────────────────────────────────────────────────┐ │ ('datalake' regexp 'd*') │ ('datalake' rlike 'd*') │ ├──────────────────────────┼─────────────────────────┤ │ truetrue │ └────────────────────────────────────────────────────┘

Was this page helpful?