NYCPHP Meetup

NYPHP.org

[nycphp-talk] Preg_match email address

Peter Lehrer pl at eskimo.com
Mon Sep 15 11:17:11 EDT 2003


I would go with {2,4} at the end of your expression because there are some
domains like .info that have 4 characters.

Peter Lehrer
----- Original Message -----
From: "Jeff" <jsiegel1 at optonline.net>
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Sent: Monday, September 15, 2003 10:55 AM
Subject: [nycphp-talk] Preg_match email address


> I'm hoping those who are more adept at regular expressions could tell me
> if this will validate the majority of email addresses...it seems like it
> will but...
>
> '/^[ a-z0-9-_]+(.[
> a-z0-9-_]+)*@[a-z0-9-]+(.[a-z0-9-_]+)*(.[a-z]{2,3})$/i',
>
> Thanks,
>
> Jeff Siegel
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>




More information about the talk mailing list