RE: [PHP] Validating Subdomain E-mail Addresses Using Regular Expressions
| From: | Javier Tacon | Date: | Mon, 08 Sep 2003 15:07:40 +0000 |
| Subject: | RE: [PHP] Validating Subdomain E-mail Addresses Using Regular Expressions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-161996@lists.php.net to get a copy of this message | ||
$email = "account@subdomain.subdomain.subdomain.subdomain.domain.com";
if(eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $email)) print
"Valid";
It should work.
Javier Tacón Iglesias.
-----Mensaje original-----
De: Jami Moore [mailto:jami@jamisniche.com]
Enviado el: lunes, 08 de septiembre de 2003 17:02
Para: php-general@lists.php.net
Asunto: RE: [PHP] Validating Subdomain E-mail Addresses Using Regular
Expressions
Importancia: Baja
Jason,
I have already done so and not found an answer, which is why I am asking
the group now. Do you have a suggestion or have you found a link that
may help? That would be ten times more useful than, "Search the archives
or ask google."
Jami Moore
LightSpark Digital Designs
contact@lightsparkdigital.com
http://www.lightsparkdigital.com/
-----Original Message-----
From: Jason Wong [mailto:php-general@gremlins.biz]
Search the archives or ask google.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php