note 13768 added to function.ereg.php
| From: | billy at allplans dot com | Date: | Mon, 02 Jul 2001 15:47:01 +0000 |
| Subject: | note 13768 added to function.ereg.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14904@lists.php.net to get a copy of this message | ||
Here's a easier more wide-spread way to confirm an email address. Just copy and paste:
"^[^@ ]+@[^@ ]+\.[^@ \.]+$"
Here's another that confirms a valid hex color value (good for user customizable sites):
"^([0-9A-F]){6}$"
http://www.php.net/manual/en/function.ereg.php