Regular Expressions 101

Library entries

Simple email verification regex

Vote

1

Regular Expression
pcre2

/
^(?=[a-z][a-z0-9@._-]{5,40}$)[a-z0-9._-]{1,20}@(?:(?=[a-z0-9-]{1,15}\.)[a-z0-9]+(?:-[a-z0-9]+)*\.){1,2}[a-z]{2,6}$
/
gm

Description

Loading markdown...
Submitted by Sowed Castelli - 3 months ago