Re: Bug #14933: regular expression problem
| From: | Steve Meyers | Date: | Tue, 08 Jan 2002 22:16:30 +0000 |
| Subject: | Re: Bug #14933: regular expression problem | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-76291@lists.php.net to get a copy of this message | ||
It's probably the double quotes. Either use single quotes, or double
backslashes. For example,
"<T>([\\da-z8]{1,})"
rajko@fly.cc.fer.hr wrote:
> From: rajko@fly.cc.fer.hr
> Operating system: Win ME
> PHP version: 4.1.1
> PHP Bug Type: Documentation problem
> Bug description: regular expression problem
>
> 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. !!
>