note 40342 added to function.ereg
| From: | belar at sevensouth dot com | Date: | Sun, 29 Feb 2004 20:07:08 +0000 |
| Subject: | note 40342 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66001@lists.php.net to get a copy of this message | ||
A slight improvement on the pattern mentioned in the previous comment:
"^[a-zA-Z0-9_\.]+@[a-zA-Z0-9_\.]+\.[a-zA-Z]{2,4}$"
This allows the user or the domain to contain numbers, but mandates that the username have at least
one letter, plus it mandates that the last element of the domain name have 2-4 letters (.com, .org,
.uk, .info, etc.).
----
Manual Page -- http://www.php.net/manual/en/function.ereg.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40342
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40342&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40342&report=yes
Search -- http://master.php.net/manage/user-notes.php