note 15363 added to function.ereg
| From: | php-general at lists dot php dot net | Date: | Thu, 06 Sep 2001 19:46:16 +0000 |
| Subject: | note 15363 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17738@lists.php.net to get a copy of this message | ||
just another valid email address check
if (!eregi("^[a-z0-9]([_\\.\\-]?[a-z0-9]+)*@((([a-z0-9]+[a-z0-9\\-]*[a\
-z0-9]+)|[a-z0-9])+\\.)+[a-z]{2,10}$", $user_email)) {
printf("Invalid Email Address");
}
http://www.php.net/manual/en/function.ereg.php