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

Top Page
Delete this message
Author: ND
Date:  
To: pcre-dev
Subject: Re: [pcre-dev] 'Hard' partial matching don't work with some assertions
On Sat, 21 Jan 2012 16:39:01 +0400, Philip Hazel <ph10@???>
wrote:

> 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
>


Incomplete string (pcre_exec with partial 'hard' option) can not match
'end of string' symbol.