note 50890 deleted from function.eregi by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 02:35:43 +0000 |
| Subject: | note 50890 deleted from function.eregi by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133128@lists.php.net to get a copy of this message | ||
Note Submitter: m.hoppe /at/ hyperspeed /dot/ de
----
The email verification regular expression works well, except if more than one @s existis (eg.
address1@domain1.comaddress2@domain2.com). I'm not a regex Guru, so this check after the known
regex works for me:
if ( count ( explode ( "@", $email ) ) != 2 )
...