Hello,

This can be found in the Owl book - Mastering Regular Expressions or on the
web at: http://public.yahoo.com/~jfriedl/regex/code.html.

If you try running these valid emails through this bit of code is says they
are all invalid...

Cheers,

Adrian

-----Original Message-----
From: Dominic Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Email::Valid


On Wed, May 30, 2001 at 11:40:03AM -0400, Andy Williams wrote:
> All the one's that claimed to be valid from E::V failed chaddr!
> [EMAIL PROTECTED] had this result from chaddr:
> user: andyw. is good
> host: hillway.com is good
> address `[EMAIL PROTECTED]' is bad: rfc822 failure
> 
> So I guess [EMAIL PROTECTED] is invalid even though it works.... wierd!

What is valid on the left hand side of an email address is extremely
weird anyway.  Practically anything is allowed.  A pseudo grammar for
them is in RFC822.  There's also much fun trying to parse them in
Friedl's book on regular expressions (the owl book).  He ends up with a
mammoth 5k regex to parse email addresses...

-Dom

-- 
| Semantico: creators of major online resources          |
|       URL: http://www.semantico.com/                   |
|       Tel: +44 (1273) 722222                           |
|   Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |


The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged. If the reader 
of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  
If you have received this communication in error, please 
re-send this communication to the sender and delete the 
original message or any copy of it from your computer
system.

Reply via email to