Re: Email validation
| From: | Timothy J. Luoma | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Email validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102130@lists.php.net to get a copy of this message | ||
On Wed, 12 Jun 2002, Pedro Pontes wrote:
> function checkEmail($strEMailAddress)
> {
> return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$",
> $strEMailAddress);
> }
>
> You have it now :).
I'm still learning my PHP regex... does the above allow someone to have a
literal "+" in their email address, ala <luomat+php@peak.org> which is
perfectly valid, but often rejected by "email validators"?
TjL