Regular Expressions 101

Library entries

email validation (RFC 5322)

Vote

0

Regular Expression
javascript

/
^((?:[A-Za-z0-9!#$%&'*+\-\/=?^_`{|}~]|(?<=^|\.)"|"(?=$|\.|@)|(?<=".*)[ .](?=.*")|(?<!\.)\.){1,64})(@)((?:[A-Za-z0-9.\-])*(?:[A-Za-z0-9])\.(?:[A-Za-z0-9]){2,})$
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago