note 14124 deleted from function.ereg by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 01:28:30 +0000 |
| Subject: | note 14124 deleted from function.ereg by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20151@lists.php.net to get a copy of this message | ||
Just when you thought email validation was a dead issue...
the majority of email validation routines do not allow a period as the last character before the @,
but such email addresses do exist (perhaps illegally).<br>
So to update the routine posted by btcsux@yahoo.com above, use:
if
(eregi("^[0-9a-z]([-_.]?[0-9a-z]\.?)*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](g|l|m|pa|t|u|v)?$",
$email, $check))