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

Page principale
Supprimer ce message
Auteur: ND
Date:  
À: Pcre-dev
Sujet: Re: [pcre-dev] 'Hard' partial matching don't work with some assertions
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.