Validating EMailAdresses for syntactical correctness

Steve Holden sholden at
Fri Jan 25 16:11:24 CET 2002

"Jason Voegele" <jason at> wrote ...
> Michael.W.Dietrich at (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

Consulting, training, speaking:
Python Web Programming:

More information about the Python-list mailing list