| Title |
Test
Find
Pattern Title
|
| Expression |
(?<email>(?![ ])(\w|[.])*@(\w|[.])*) |
| Description |
E-mail addresses matcher |
| Matches |
mpgrewal@rediffmail.com |
| Non-Matches |
arnoldschwarz |
| Author |
Rating:
Manpreet Grewal
|
| Source |
|
| Your Rating |
|
Title: Fails to match the valid email address
Name: The Fred and Barney Comedy Team <fred&barney@stonehenge.com>
Date: 1/26/2005 3:39:52 AM
Comment:
Fails to match the valid email address
fred&barney@stonehenge.com
Title: No good
Name: Iain
Date: 12/2/2003 6:36:31 PM
Comment:
This doesn't match "foo-bar@example.com" or "foo+bar@example.com"
Also, (\w|[.])* is better written as [\w.]*
Also, it *does* match "@"
The <a href="http://dellah.org/perl/faq/?term=valid+mail+address">entry on validating email addresses in the Perl FAQ</a> should be enlightening.