Re: [pcre-dev] Partial match at end of subject

Αρχική Σελίδα
Delete this message
Συντάκτης: ph10
Ημερομηνία:  
Προς: ND
Υ/ο: Pcre-dev
Αντικείμενο: Re: [pcre-dev] Partial match at end of subject
On Wed, 10 Jul 2019, ND via Pcre-dev wrote:

> PCRE2 version 10.33 2019-04-16
> /(?<=(?=.(?<=x)))/
> ab\=ph
> Partial match: b
>
>
> /(?<=.(?=x))/
> ab\=ph
> Partial match: b
>               <

>
> Isn't both results should be "no match" instead of "partial match"?


Why? "Partial match" means "if you add some more characters to the
subject, it MAY match". If you add "x", it matches.

Philip

--
Philip Hazel