Regular Expressions 101

Community Patterns

Email validation

0

Regular Expression
ECMAScript (JavaScript)

/
[\w\.]+@[a-zA-Z_]+?(\.[a-zA-Z]{2,6})+
/
g

Description

Simple email validation regexpr to handle subdomains and other stuff. See example

Submitted by anonymous - 6 years ago