Regular Expressions 101

Community Patterns

Regular expression to Vaildate an Email Address

1

Regular Expression
ECMAScript (JavaScript)

/
^[a-zA-Z0-9\.]+@[a-zA-Z0-9]+(\-)?[a-zA-Z0-9]+(\.)?[a-zA-Z0-9]{2,6}?\.[a-zA-Z]{2,6}$
/

Description

The regular expression uses the basic email address syntex, ulr rules form validating an email address. Watch the complete tutorial on youtube : https://www.youtube.com/watch?v=H6WvPfh7OYw

Submitted by Rayees Ahmed Shaikh - 8 years ago