Title |
Test
Find
Simple E-mail Regex
|
Expression |
^[a-zA-Z0-9._\-]+@[a-z0-9\-]+(\.[a-z]+){1,}$ |
Description |
Matches simple e-mail addresses such as [email protected], [email protected], but does not place any restrictions on TLDs other than they must be lower case and alphabetic. a-z, A-Z, 0-9, ., _, and - are all allowed on the left side of @. |
Matches |
|
Non-Matches |
@test.com|@.com|@. |
Author |
Rating:
Kevin Herrera
|
Source |
http://codealchemy.com/ |
Your Rating |
|
Title: WRONG WRONG WRONG
Name: Randal L. Schwartz
Date: 10/8/2008 9:01:16 PM
Comment:
Please go read RFC822 and RFC2822 and the new one they just made that I haven't memorized the number for.
YOU DO NOT KNOW WHAT A VALID EMAIL LOOKS LIKE.
Learn first, then publish.