Title |
Test
Find
Email Validations
|
Expression |
^([a-zA-Z0-9][a-zA-Z0-9_]*(\.{0,1})?[a-zA-Z0-9\-_]+)*(\.{0,1})@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|([a-zA-Z0-9\-]+(\.([a-zA-Z]{2,10}))(\.([a-zA-Z]{2,10}))?(\.([a-zA-Z]{2,10}))?))[\s]*$ |
Description |
Validates almost all email addresses. Tested and running fine on a major web portal |
Matches |
|
Non-Matches |
|
Author |
Rating:
Not yet rated.
Gauri Karlekar
|
Source |
|
Your Rating |
|
Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 8/28/2008 5:49:49 AM
Comment:
The author has not seen RFC822 or RFC2822, and therefore this email validator is wrong. Hint: if your regex for validating email is less than about 2000 characters, you're not validating actual email addresses... just your ignorant idea of email addresses.