| Title |
Test
Find
Pattern Title
|
| Expression |
^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$ |
| Description |
Email validation for domain or IP |
| Matches |
|
| Non-Matches |
|
| Author |
Rating:
mr. hand
|
| Source |
|
| Your Rating |
|
Title: DO NOT MATCH EMAIL with regex
Name: Randal L. Schwartz
Date: 1/6/2006 9:36:04 PM
Comment:
Apparently, it doesn't matter how many times I post this here. Some new idiot will come along and try it again.
YOU CANNOT MATCH AN EMAIL LIKE THIS. See RFC822 and http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html