note 14690 rejected and deleted from function.ereg.php by alindeman
| From: | alindeman@php.net | Date: | Thu, 09 Aug 2001 13:21:10 +0000 |
| Subject: | note 14690 rejected and deleted from function.ereg.php by alindeman | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16511@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