Re: [PHP] Validating Email addrs

2005-11-16 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 07:39:28AM -, George Pitcher wrote: > I grabbed the following from a web-published article (sorry, can't remember > where): There a few things wrong with it as well. > > function validate_email($email) { > if(preg_match("/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@(

RE: [PHP] Validating Email addrs

2005-11-15 Thread George Pitcher
in the near future). Never tested this, so can't comment on usefulness. George > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: 16 November 2005 4:04 am > To: php-general@lists.php.net > Subject: Re: [PHP] Validating Email addrs > > > On T

Re: [PHP] Validating Email addrs

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 11:16:15AM -0500, Leonard Burton wrote: > Hi All, > > I know that it is pretty darn impossible to come up with a regular > expression for validating emails. > > How do you all validated emails on form submission? > > Is it good just to do something like "/[EMAIL PROTECTED

Re: [PHP] Validating Email addrs

2005-11-15 Thread Leonard Burton
Hi Greg, all, > http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html That is a heck of a regex there. I am going to have to experiment with that one a little bit. Thanks for the replies to my post here. -- Leonard Burton, N9URK [EMAIL PROTECTED] "The prolonged evacuation would have dramati

Re: [PHP] Validating Email addrs

2005-11-15 Thread Matt Stone
- Original Message - From: "Leonard Burton" <[EMAIL PROTECTED]> To: "PHP-General" Sent: Tuesday, November 15, 2005 4:16 PM Subject: [PHP] Validating Email addrs >Hi All, >I know that it is pretty darn impossible to come up with a regular >express

Re: [PHP] Validating Email addrs

2005-11-15 Thread Richard Heyes
Leonard Burton wrote: Hi All, I know that it is pretty darn impossible to come up with a regular expression for validating emails. How do you all validated emails on form submission? Is it good just to do something like "/[EMAIL PROTECTED]/" ? That (or a close derivative) should match that t

Re: [PHP] Validating Email addrs

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Leonard Burton wrote: I know that it is pretty darn impossible to come up with a regular expression for validating emails. Nah.. just depends on how closely you want to follow the RFC. http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html -- Greg Donald Zend Certified

[PHP] Validating Email addrs

2005-11-15 Thread Leonard Burton
Hi All, I know that it is pretty darn impossible to come up with a regular expression for validating emails. How do you all validated emails on form submission? Is it good just to do something like "/[EMAIL PROTECTED]/" ? That (or a close derivative) should match that there is at least a @ and