email format in python

Miki Tebeka miki.tebeka at zoran.com
Mon Jul 18 06:47:16 EDT 2005


Hello met,

> I want to have the python equivalent function of this
> (that checks email format)
> 
> function CheckEmail($Email = "") {
>   if (ereg("[[:alnum:]]+@[[:alnum:]]+\.[[:alnum:]]+",
> $Email)) {
>     return true;
>   } else {
>     return false;
>   }
> }
Check out the "email" library module (see the examples at
http://docs.python.org/lib/node589.html)

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 193 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050718/d442bd1f/attachment.sig>


More information about the Python-list mailing list