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 be

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. In the