NYCPHP Meetup

NYPHP.org

[nycphp-talk] Preg_match email address

Jeff jsiegel1 at optonline.net
Mon Sep 15 11:56:55 EDT 2003


The "2,4" makes sense. Thanks for pointing it out.

Jeff

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Peter Lehrer
Sent: Monday, September 15, 2003 10:17 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Preg_match email address


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
>

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list