test if email

George Sakkis george.sakkis at gmail.com
Fri Oct 12 17:54:42 EDT 2007


On Oct 12, 4:59 pm, brad <byte8b... at gmail.com> wrote:
> kyoso... at gmail.com wrote:
> > On Oct 12, 2:55 pm, Florian Lindner <Florian.Lind... at xgm.de> wrote:
> >> Hello,
> >> is there a function in the Python stdlib to test if a string is a valid
> >> email address?
>
> here's a Perl re example... I don't know whether to laugh or cry...
> don't try to replicate this in Python or you'll hurt yourself. :)
>
> "... the only sure way to see if a supplied email address is genuine is
> to send an email to it and see if the user recieves it."
>
> http://ex-parrot.com/~pdw/Mail-RFC822-Address.html

Gotta love the comment: "somewhat pushes the limits of what it is
sensible to do with regular expressions".

Now if this is not an understatement I don't know what is!




More information about the Python-list mailing list