test if email

Grant Edwards grante at visi.com
Sat Oct 13 00:10:08 CEST 2007

On 2007-10-12, George Sakkis <george.sakkis at gmail.com> wrote:
> 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".

OK, I want to know if a human generate that RE, or if it was
generated mechanically from the grammar specification.  It's
hard to imagine the former, but you never know when it comes to
Perl programmers.

Grant Edwards                   grante             Yow! Hmmm ... an arrogant
                                  at               bouquet with a subtle
                               visi.com            suggestion of POLYVINYL
                                                   CHLORIDE ...

More information about the Python-list mailing list