Re: [pcre-dev] (*SKIP) action

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: ND
CC: Pcre-dev
Subject: Re: [pcre-dev] (*SKIP) action
On Thu, 31 Dec 2009, ND wrote:

> On 2009-09-13 16:10, Philip Hazel wrote:
> > I will update the PCRE documentation to explain this.
>
> Explain please more clearly: the (*SKIP) verb don't work in assertions? In
> assertions it not differ from (*PRUNE)?


What I have said in the 8.00 documentation is this:

If any of these verbs are used in an assertion or subroutine
subpattern (including recursive subpatterns), their effect is confined
to that subpattern; it does not extend to the surrounding pattern.
Note that such subpatterns are processed as anchored at the point
where they are tested.

This applies to all the "backtracking control" verbs. It is compatible
with Perl.

Philip

--
Philip Hazel