Hello met, > I want to have the python equivalent function of this > (that checks email format) > > function CheckEmail($Email = "") { > if (ereg("[[:alnum:[EMAIL PROTECTED]: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 <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys
pgpYVjP8OOEUV.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list