note 57498 added to function.eregi
| From: | lew dot payne at gmail dot com | Date: | Wed, 05 Oct 2005 22:39:42 +0000 |
| Subject: | note 57498 added to function.eregi | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96462@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.eregi.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57498
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57498&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57498&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57498&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57498&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57498&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57498&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57498&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57498&report=yes
Search -- http://master.php.net/manage/user-notes.php