Regular Expressions 101

Community Patterns

RFC5322-Email-Id-WHATWG

1

Regular Expression
ECMAScript (JavaScript)

/
^(?=.{3,254}$)[\w\!#\$%&'\*\+\/\=\?\^_`\{\|\}~\-]([\w\.\!#\$%&'\*\+\/\=\?\^_`\{\|\}~\-]{0,62}[\w\!#\$%&'\*\+\/\=\?\^_`\{\|\}~\-])?@[\w]([\w-]{0,61}[\w])?(\.[\w]([\w-]{0,61}[\w])?)*$
/
gi

Description

RFC5322 with WHATWG standard email id regex pattern

Submitted by Sivanesan - 2 years ago