Re: PCRE - catching a caracter set in a negative class
| From: | CC Zona | Date: | Wed, 10 Apr 2002 02:07:06 +0000 |
| Subject: | Re: PCRE - catching a caracter set in a negative class | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92332@lists.php.net to get a copy of this message | ||
In article <20020410014842.2081.qmail@morpheus.ian.cx>,
subscriptions@phpbeginner.com (Maxim Maletsky) wrote:
> I was scratching my head to accomplish the following perl regular
> expression. It doesn't want to catch me [^\{php}]. From what I understood
> reading the docs this is because in a negative class the caracters are being
> taken litteraly one by one and not as a set. I tied to enclose them by () by
> that didn't work eigher. What is the work around for this?
The section of the PCRE Syntax page that you want is the part dealing with
"lookaheads" and "lookbehinds".
--
CC