note 14690 added to function.ereg.php
| From: | benoy at newmail dot net | Date: | Thu, 09 Aug 2001 13:19:51 +0000 |
| Subject: | note 14690 added to function.ereg.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16510@lists.php.net to get a copy of this message | ||
I use the following code to validate email addresses
eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](g|l|m|pa|t|u|v)?$",
$iemail)
But since there are some new domains to come in the furure (like 'info') it won't be
up to date anymore. And i'm not very good at regular expressions... So if sb can help me out...
Tnx
http://www.php.net/manual/en/function.ereg.php