note 32202 deleted from function.eregi by alindeman
| From: | alindeman@php.net | Date: | Tue, 20 May 2003 20:38:34 +0000 |
| Subject: | note 32202 deleted from function.eregi by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48681@lists.php.net to get a copy of this message | ||
Note Submitter: Just for Domain with .sg .kr... etc
----
all the email check does not allows the check of the country so I guess this is the best solution
if (!ereg("^[[:alnum:]]+([_\\.-][[:alnum:]]+)*" .
"@[[:alnum]]+([\\.-][[:alnum:]]+)*)+" .
"\\.[[:alpha:]]{2,}" .
"\\.[[:alpha:]]{0,2}" .
"$",$email)
{
echo "Error : '$email' is not a valid email address\n";
}