Re: email format in python

2005-07-20 Thread dimitri pater
hello, this one works quite well on validating email syntax: http://www.secureprogramming.com/?action=""> regards, DimitriOn 7/20/05, Dark Cowherd <[EMAIL PROTECTED]> wrote: This seems to give reasonable results.import repattern = r'[EMAIL PROTECTED],4}\b'pattobj = re.compile(pattern)ps = pattobj.

Re: email format in python

2005-07-19 Thread Dark Cowherd
This seems to give reasonable results. import re pattern = r'[EMAIL PROTECTED],4}\b' pattobj = re.compile(pattern) ps = pattobj.search if ps(stringtocheck): But as lots of people have already told you on this list. This should only be used to give a warning and not prevent the use of that p

Re: email format in python

2005-07-19 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > Agree. In the case of user input validation, it might be ok to politely > inform the user that the address looks a bit funny, but refusing to work > with it will anger a user sooner or later. Yup. I use cryptographically signed addresses as one-time addre

Re: email format in python

2005-07-19 Thread Jorgen Grahn
On Mon, 18 Jul 2005 06:44:36 -0400, Benji York <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> I want to have the python equivalent function of this >> (that checks email format) >> ... >> if (ereg("[[:alnum:[EMAIL PROTECTED]:alnum:]]+\.[[:alnum:]]+", ... > > While it is possible to tra

Re: email format in python

2005-07-18 Thread Miki Tebeka
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

Re: email format in python

2005-07-18 Thread Benji York
[EMAIL PROTECTED] wrote: > 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; > } > } While

email format in python

2005-07-18 Thread [EMAIL PROTECTED]
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; } }