Email address check function

Fredrik Lundh fredrik at pythonware.com
Fri Dec 3 06:01:49 EST 1999


Gerrit Holl <gerrit.holl at pobox.com> wrote:
> I'm writing some CGI scripts and I want the user to fill in their real email
> address. Checking this is more difficult than just look if it contains an '@'.
> There must be at least one '.' after the '@' but there must be non-'@' chars
> before and after every '.', no white space, etc. There must be an RFC for
> this, but is there a function in the standard library that checks if it's
> OK?

http://www.perl.com/pub/doc/manual/html/pod/perlfaq9.html#How_do_I_check_a_valid_mail_addr

    "How do I check a valid mail address?

    You can't, at least, not in real time.
    Bummer, eh?"

</F>





More information about the Python-list mailing list