Regular Expressions 101

Community Patterns

emailaddress

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\b\w+[-._]?\w+@\w+\.[a-z]{2,3}+
/
g

Description

accepts common emails even wit first part with a point or a score or underscore .-_

Submitted by anonymous - 2 years ago