note 57498 deleted from function.eregi by betz
| From: | betz@php.net | Date: | Thu, 06 Oct 2005 06:03:48 +0000 |
| Subject: | note 57498 deleted from function.eregi by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96473@lists.php.net to get a copy of this message | ||
Note Submitter: lew dot payne at gmail dot com
----
Mathieu - you ask if we know what email addresses are accepted by bobocop's function. Yes, we
do -- he provided the source code (or did you not notice?). All we have to do is take the time to
understand his few lines of code. Perhaps you should do the same.
You naively complain about the fact that his REGEX allows a dot to be present in the email name,
such as "a.b@example.com" - expecting that it shouldn't. Well, I suggest you open
your eyes and look around. Many corporate email addresses separate the person's first and last
name with a dot. My own email is lew.payne at gmail dot com... so as you can plainly see, a dot is
allowed in the name field (two consecutive dots are not).
If you don't like his REGEX, which he was kind enough to share with all of us on here, perhaps
you should post your "improved" version instead of making statements which only serve to
show how little you know.