note 50952 deleted from function.eregi by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 02:35:30 +0000 |
| Subject: | note 50952 deleted from function.eregi by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133126@lists.php.net to get a copy of this message | ||
Note Submitter: emil at janesten dot com
----
At m.hoppe:
Perhaps this will help you verify an email address? I found it on http://www.regular-expressions.info
<?php
$email = "user@example.com";
if (eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", $email)) {
echo "'$email' is a valid email!";
}
?>