Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
/
gi

Description

Regex for generic email (Not validation on ending in .com, .org etc.)

Submitted by http://www.regular-expressions.info/email.html - 9 years ago