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

Pàgina inicial
Delete this message
Autor: Philip Hazel
Data:  
A: ND
CC: Pcre-dev
Assumpte: Re: [pcre-dev] 'Hard' partial matching don't work with some assertions
On Sat, 21 Jan 2012, ND wrote:

> PCRE version 8.21 2011-12-12
> /\z/
> \P\Pa
> 0:
>
> No match is expected. It's a bug I think.


Why do you expect no match? Your pattern is unanchored. It matches at
the end of the subject. (This can be confirmed by giving pcretest the
pattern /\z/+ to make it show what follows the match.) An anchored
pattern gives no match.

Philip

--
Philip Hazel