Regular Expressions 101

Community Patterns

Email Check

1

Regular Expression
PCRE (PHP <7.3)

/
^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$
/

Description

Verify an email is OK

Submitted by Will - 9 years ago