note 46007 deleted from function.eregi by nlopess
| From: | nlopess@php.net | Date: | Sun, 26 Sep 2004 14:52:44 +0000 |
| Subject: | note 46007 deleted from function.eregi by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77403@lists.php.net to get a copy of this message | ||
Note Submitter: chris at redeeming dot us
----
I didn't like some of the limitations to the email format checkers.
I know people with email addresses of:
blah+dff@blah.com and it wouldn't allow this
It should also force it to start with an alpha numeric and end with the same.
This should all be on one line.
^[_a-z0-9-]+(\.[_a-z0-9-]+)*
@[a-z0-9-]+(\.[a-z0-9-]{1,})*\.([a-z]{2,}){1}$
Hope this helps someone.