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 <[EMAIL PROTECTED]> which is
perfectly valid, but often rejected by "email validators"?
TjL
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php