Skip to content

Checks whether a string matches a regular expression pattern.

func.regexp(<str> REGEXP <pattern>)
get_column(table, 'email').regexp_match('^[a-z]+@')
┌───────────┐
│ (boolean) │
└───────────┘
REGEXP(<str> REGEXP <pattern>)
SELECT email FROM users WHERE email REGEXP '^[a-z]+@[a-z]+\\.com$';
┌───────────────────┐
│ alice@example.com │
└───────────────────┘