Regular Expressions 101

Community Patterns

1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 17 hours ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - a day ago

Best email regex including + (plus) and everything else

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[_a-z0-9]+(\.[_a-z0-9]+)*(\+[a-z0-9]+(\.[_a-z0-9]+)*)?@([a-z0-9-]+\.)+[a-z]{2,20}$
/
i

Description

Loading markdown...
Submitted by Jérôme Brunel - 5 months ago