[nycphp-talk] Validating Email Addresses
Dan Cech
dcech at phpwerx.net
Thu Dec 2 12:42:55 EST 2004
Daniel Convissor wrote:
> Folks:
>
> On Thu, Dec 02, 2004 at 11:19:23AM -0500, James B. Wetterau Jr. wrote:
>
>>http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
>
>
> I feel that regex is way overblown. Here's my ereg pattern:
>
> '^[a-z0-9_.=+-]+@([a-z0-9-]+\.)+([a-z]{2,6})$'
>
> --Dan
>
The problem with that is that it will reject emails of the form:
Joe Bloggs <joe at example.com>
or variants thereof.
I'm trying to accept these addresses and use them in a sensible way
using phpmailer.
Dan
More information about the talk
mailing list