note 84222 added to function.preg-match
| From: | mailinglist dot php at hydras-world dot com | Date: | Thu, 03 Jul 2008 21:30:00 +0000 |
| Subject: | note 84222 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141128@lists.php.net to get a copy of this message | ||
The regexp below thinks that the e-mail address:
'me@de.com' is invalid, which it is not.
'/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@
([a-z0-9])([-a-z0-9_])+([a-z0-9])*
(\.([a-z0-9])([-a-z0-9_-])([a-z0-9])+)*$/i'
I modified it and it seems to work for me in my limited tests of it.
YMMV.
----
Server IP: 92.48.100.16
Probable Submitter: 84.9.60.50
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/84222
Del: integrated -- https://master.php.net/note/delete/84222/integrated
Del: useless -- https://master.php.net/note/delete/84222/useless
Del: bad code -- https://master.php.net/note/delete/84222/bad+code
Del: spam -- https://master.php.net/note/delete/84222/spam
Del: non-english -- https://master.php.net/note/delete/84222/non-english
Del: in docs -- https://master.php.net/note/delete/84222/in+docs
Del: other reasons-- https://master.php.net/note/delete/84222
Reject -- https://master.php.net/note/reject/84222
Search -- https://master.php.net/manage/user-notes.php