Bug #14933 Updated: regular expression problem
| From: | irc-html@php.net | Date: | Tue, 08 Jan 2002 20:28:26 +0000 |
| Subject: | Bug #14933 Updated: regular expression problem | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-76283@lists.php.net to get a copy of this message | ||
ID: 14933
Updated by: irc-html
Reported By: rajko@fly.cc.fer.hr
Old Status: Open
Status: Bogus
Bug Type: Documentation problem
Operating System: Win ME
PHP Version: 4.1.1
New Comment:
The document is correct on this issue, those character types may be
used.
I've tested your code as:
if (ereg('<T>([\da-z]{1,})', '<T>try8')) { echo 'match'; }
Which, works just fine on win32 platforms, 4.1.1. You may want to
ensure there is no whitespace in the string you are testing.
Status -> Bogus
Previous Comments:
------------------------------------------------------------------------
[2002-01-08 15:13:08] rajko@fly.cc.fer.hr
Documentation quote:
The character types \d, \D, \s, \S, \w, and \W may also appear
in a character class, and add the characters that they match to the
class.
So, I tried to match "<T>try8" with
"<T>([\da-z]{1,})" and it won't work.
vs
"<T>([\da-z8]{1,})" work. !!
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14933&edit=1