Re: [pcre-dev] 'Hard' partial matching don't work with some …

Top Page
Delete this message
Author: ND
Date:  
To: Pcre-dev@exim.org
Subject: Re: [pcre-dev] 'Hard' partial matching don't work with some assertions

Hi, Philip!

Please inform, is there any progress in correcting PCRE behaviour when
lookaheads are at the end of subject string, 'partial hard' rised and no
symbols are inspected before?

Thanx.


On 2012-01-22 06:28, ND wrote:
> And here is another strange result (may be they are connected with \z
> discussion):
> PCRE version 8.21 2011-12-12
> /(?<=a)(?!b)/+
> \P\Pa
> Partial match: a
> Now we swap assertions:
> PCRE version 8.21 2011-12-12
> /(?!b)(?<=a)/+
> \P\Pa
> 0:
> 0+
> Result changes to 'match'. Expected 'partial match'. Is there such
> assertions swaping can change result?
> Another example:
> PCRE version 8.21 2011-12-12
> /(?!a)/+
> \P\Pa
> 0:
> 0+
> We want to lookahead with 'partial hard' but PCRE don't allow this.
> Instead it assumes that string is complete and returns inutile result.
> Look at that examples please.
> Thanx.