콘텐츠로 이동

문자열이 정규식 패턴과 일치하는지 확인합니다.

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 │
└───────────────────┘