Regular Expressions 101

Community Patterns

Match all email entries in a data set

0

Regular Expression
PCRE (PHP <7.3)

/
\b[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}\b
/
gm

Description

\b[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}\b

Submitted by anonymous - 5 years ago