note 18351 deleted from function.eregi by didou
| From: | didou@php.net | Date: | Tue, 30 Dec 2003 14:32:35 +0000 |
| Subject: | note 18351 deleted from function.eregi by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62678@lists.php.net to get a copy of this message | ||
Note Submitter: zo.nu@zo.nu
----
Looking for a regular expression that will validate email addresses, including those with the new
TLD's? Here it is:
eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@
([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$",$email);
Note: The line is wrapped!