Regular Expressions 101

Community Patterns

Email Match

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(([(_)a-zA-Z0-9\.\-]{1,})(@)([a-zA-Z0-9\-]+)(\.)([a-zA-Z]{2,3})((\.)([a-z]{2,3}))?)
/
gm

Description

matches on emails.. try it

Submitted by Singh - 2 years ago