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

John Machin sjmachin at
Fri Sep 22 12:37:53 CEST 2006

Ben Finney wrote:
> "John Machin" <sjmachin at> 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
> as "not valid"?

None. Re-read my post. I was suggesting suggesting an "are you sure" in
the case of weird or infrequent ones. Discarding wasn't mentioned.

More information about the Python-list mailing list