Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[+\.\w\+-]*@[\w-]+(\.[a-z]{2,6})*(\.[a-z]{2,6})$
/
gm

Description

Validates a few unregular formats of email.

Submitted by Oren Zur-Shavit - 3 years ago