Re: Don't use regular expressions to "validate" email addresses

2006-09-22 Thread Ben Finney
Steve Holden <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > I don't "validate" email addresses by regular expression. > > > Just as a matter of interest, are you expecting that you'll find out > about the undeliverable ones? Because in many cases nowadays you > wont, since so many domains ar

Re: Don't use regular expressions to "validate" email addresses (was: Ineed some help with a regexp please)

2006-09-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Damjan <[EMAIL PROTECTED]> wrote: >>> you'd create something to allow anyone to >>> potentially spam the hell out of a system... >> >> I'm sorry, but I fail to see how validating (or not) an email address >> could prevent using a webmail form for spamming. Care to

Re: Don't use regular expressions to "validate" email addresses

2006-09-22 Thread Tim Williams
> > > Just as a matter of interest, are you expecting that you'll find out > about the undeliverable ones? Because in many cases nowadays you wont, > since so many domains are filtering out "undeliverable mail" messages as > an anti-spam defence. > ...and then there is the problem of validating th

Re: Don't use regular expressions to "validate" email addresses

2006-09-22 Thread Steve Holden
Ben Finney wrote: > "John Machin" <[EMAIL PROTECTED]> writes: > > >>What proportion of deliverable e-mail addresses have more than one @ >>in them? > > > I don't know. Fortunately, I don't need to; I don't "validate" email > addresses by regular expression. > > What proportion of deliverable e

Re: Don't use regular expressions to "validate" email addresses (was: Ineed some help with a regexp please)

2006-09-22 Thread Damjan
>> you'd create something to allow anyone to >> potentially spam the hell out of a system... > > I'm sorry, but I fail to see how validating (or not) an email address > could prevent using a webmail form for spamming. Care to elaborate ? The best way would be to implement some limiting features.

Re: Don't use regular expressions to "validate" email addresses

2006-09-22 Thread John Machin
Ben Finney wrote: > "John Machin" <[EMAIL PROTECTED]> writes: > > > What proportion of deliverable e-mail addresses have more than one @ > > in them? > > I don't know. Fortunately, I don't need to; I don't "validate" email > addresses by regular expression. > > What proportion of deliverable email

Re: Don't use regular expressions to "validate" email addresses

2006-09-22 Thread Ben Finney
"John Machin" <[EMAIL PROTECTED]> writes: > What proportion of deliverable e-mail addresses have more than one @ > in them? I don't know. Fortunately, I don't need to; I don't "validate" email addresses by regular expression. What proportion of deliverable email addresses do you want to discard

Re: Don't use regular expressions to "validate" email addresses (was:Ineed some help with a regexp please)

2006-09-22 Thread Fredrik Lundh
Bruno Desthuilliers wrote: >> if you were creating a web app with an email form... rather than try to >> check if the email is valid... > > Ever bothered to read the relevant rfc ? or the perl faq: http://faq.perl.org/perlfaq9.html#How_do_I_check_a_val -- http://mail.python.org/mailma

Re: Don't use regular expressions to "validate" email addresses

2006-09-22 Thread John Machin
Ben Finney wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > > > Ben Finney wrote: > > > The best advice I've seen when people ask "How do I validate > > > whether an email address is valid?" was "Try sending mail to it". > > > > > That only applies if it's a likely-looking email address. If som

Re: Don't use regular expressions to "validate" email addresses (was: Ineed some help with a regexp please)

2006-09-22 Thread Bruno Desthuilliers
bruce wrote: > so ben... > > if you were creating a web app with an email form... rather than try to > check if the email is valid... Ever bothered to read the relevant rfc ? > you'd create something to allow anyone to > potentially spam the hell out of a system... I'm sorry, but I fail to see

Re: Don't use regular expressions to "validate" email addresses (was: I need some help with a regexp please)

2006-09-22 Thread Ant
Ben Finney wrote: ... > The best advice I've seen when people ask "How do I validate whether > an email address is valid?" was "Try sending mail to it". There are advantages to the regex method. It is faster than sending an email and getting a positive or negative return code. The delay may not b

Re: Don't use regular expressions to "validate" email addresses

2006-09-21 Thread Ben Finney
Steve Holden <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > The best advice I've seen when people ask "How do I validate > > whether an email address is valid?" was "Try sending mail to it". > > > That only applies if it's a likely-looking email address. If someone > asks me to send mail to

Re: Don't use regular expressions to "validate" email addresses

2006-09-21 Thread Steve Holden
Ben Finney wrote: > "John Machin" <[EMAIL PROTECTED]> writes: > > >>A little more is unfortunately not enough. The best advice you got was >>to use an existing e-mail address validator. The definition of a valid >>e-mail address is complicated. You may care to check out "Mastering >>Regular Expre

Re: Don't use regular expressions to "validate" email addresses

2006-09-21 Thread Ben Finney
[Please don't top-post above the text you're replying to.] "bruce" <[EMAIL PROTECTED]> writes: > if you were creating a web app with an email form... rather than try > to check if the email is valid... Where did I advise not checking? I advised the only kind of check that actually works. > you'

RE: Don't use regular expressions to "validate" email addresses (was: Ineed some help with a regexp please)

2006-09-21 Thread bruce
gs to the user... peace... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Finney Sent: Thursday, September 21, 2006 6:07 PM To: python-list@python.org Subject: Don't use regular expressions to "validate" email addresses (was: Ineed som

Don't use regular expressions to "validate" email addresses (was: I need some help with a regexp please)

2006-09-21 Thread Ben Finney
"John Machin" <[EMAIL PROTECTED]> writes: > A little more is unfortunately not enough. The best advice you got was > to use an existing e-mail address validator. The definition of a valid > e-mail address is complicated. You may care to check out "Mastering > Regular Expressions" by Jeffery Friedl