Validating EMailAdresses for syntactical correctness

Doobee R. Tzeck drt-usenet-200201 at un.bewaff.net
Mon Jan 28 22:43:59 CET 2002


Pete Shinners <pete at shinners.org> writes:

> Jason Voegele wrote:
> > If you really want to ensure 100% syntactical correctness, here's the
> > regular expression for matching email addresses, from Jeffrey Friedl's
> > "Mastering Regular Expressions" book ;-)
> >
> 
> << MIME encoded re-sample deleted :] >>
> 
> any summary on what that's supposed to mean?
> (beyond "validate email address")

It is able to validate all valid RfC 822 Addresses like

Muhammed.(I am  the greatest) Ali @(the)Vegas.WBA
"\"quote.and space"@[].[\[].yp.to    (Might work)
<@gateway.af.mil:God at heaven.af.mil>
<mailto:@c0re.jp>

this are all valid addresses. RfC 822 address parsing -which is
the essential for finding "valid" addresses is sheer horror.

drt

-- 
teenage mutant ninja hero coders from da c0re - http://c0re.jp/
me                                  - http://koeln.ccc.de/~drt/



More information about the Python-list mailing list