Re: [pcre-dev] Subject length lower bound calculation

Αρχική Σελίδα
Delete this message
Συντάκτης: ph10
Ημερομηνία:  
Προς: ND
Υ/ο: Pcre-dev
Αντικείμενο: Re: [pcre-dev] Subject length lower bound calculation
On Wed, 5 Jun 2019, ND via Pcre-dev wrote:

> PCRE2 version 10.33 2019-04-16
> /(?=abc)/I
> Capture group count = 0
> May match empty string
> First code unit = 'a'
> Last code unit = 'c'
> Subject length lower bound = 0
>
>
> Why Subject length lower bound = 0, not 3?


Because PCRE2 isn't clever enough to deal with lookarounds when
computing the minimum length.

Philip

--
Philip Hazel