Regular Expressions 101

Library entries

BEST simple mail regex validator

Vote

4

Regular Expression
javascript

/
^((\w[^\W]+)[\.\-]?){1,}\@(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$
/
gm

Description

Loading markdown...
Submitted by Ayslan Johnson (ayslanjohnson@gmail.com) - 4 years ago