Validating EMailAdresses for syntactical correctness

Steve Holden sholden at holdenweb.com
Fri Jan 25 10:11:24 EST 2002


"Jason Voegele" <jason at jvoegele.com> wrote ...
> Michael.W.Dietrich at modulo3.de (Michael W. Dietrich) wrote ...
> > Has anyone ever written a class, function or regular expression, that
> > validates EMail-Addresses (e.g. such entered in Web Forms) for their
> > syntactical correctness? If so, is that algorithm available? Where?
> >
> > Any comments on this matter are appreciated.
>
> 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 ;-)
>
[many, many lines of RE code omitted]
>
I trust this expression is accompanied by a proof of correctness in the
book.

regards
 Steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Python Web Programming: http://pydish.holdenweb.com/pwp/








More information about the Python-list mailing list