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\._-] )*@(
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
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
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
- Original Message -
From: Leonard Burton [EMAIL PROTECTED]
To: PHP-General php-general@lists.php.net
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
expression for validating
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
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]/ ?
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 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
8 matches
Mail list logo