Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?ix)^ (?=(?:[^\.]|\.(?!\.)){0,254}$) (?!(?:^|.*[\.@])(?=[^a-z0-9]+[\.@])) (?=(?=\w)) (?=.*[a-z0-9].*@) (?=.{0,64}@) [\w\-\.]+(?<!\.)@(?=\w) [\w\-\.]+(?<!\W)\.[a-z]{2,4}$
/
gm

Description

no description available

Submitted by anonymous - 7 years ago