Re: [Tutor] regex advise + email validate

2010-10-01 Thread Norman Khine
hi steven, thanks for the in-depth info, yes i am aware that email validation is not full proof until you actually send an email and then validate that you have a response, i guess dnspython helps a little in this respect and integration with OpenID and the like. for my needs i just wanted to find

Re: [Tutor] regex advise + email validate

2010-10-01 Thread Steven D'Aprano
On Fri, 1 Oct 2010 09:34:01 pm Norman Khine wrote: > hello, i have this code > > http://pastie.org/1193091 > > i would like to extend this so that it validates TLD's such as > .travel and .museum, i can do this by changing {2,4} to {2,7} but > this sort of defeats the purpose of validating the corr

Re: [Tutor] regex advise + email validate

2010-10-01 Thread Norman Khine
thanks for the links, i was just looking at the regular-expressions.info site. On Fri, Oct 1, 2010 at 2:07 PM, Christian Witts wrote: > On 01/10/2010 13:34, Norman Khine wrote: >> >> hello, i have this code >> >> http://pastie.org/1193091 >> >> i would like to extend this so that it validates TL

[Tutor] regex advise + email validate

2010-10-01 Thread Norman Khine
hello, i have this code http://pastie.org/1193091 i would like to extend this so that it validates TLD's such as .travel and .museum, i can do this by changing {2,4} to {2,7} but this sort of defeats the purpose of validating the correct email address. are there any python libraries available to