On Oct 12, 4:59 pm, brad <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> 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! -- http://mail.python.org/mailman/listinfo/python-list