Συντάκτης: ph10 Ημερομηνία: Προς: ND Υ/ο: Pcre-dev Αντικείμενο: Re: [pcre-dev] Partial match at end of subject
On Fri, 12 Jul 2019, ND via Pcre-dev wrote:
> This is about my second example.
> But it seems first example have another issue:
>
> >PCRE2 version 10.33 2019-04-16
> >/(?<=(?=.(?<=x)))/
> >ab\=ph
> >Partial match: b
>
> Why it matched b?
Again, it has inspected at least one character, and if you add "x" it
matches.
> And there is another example with result that I don't understand:
>
> /\z/
> ab\=ph
> 0:
>
> Why it's result is not "no match"?
It's a complete match, not a partial match. You've asked for a match at
the end of the subject, and it has.