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

Startseite
Nachricht löschen
Autor: ph10
Datum:  
To: ND
CC: Pcre-dev
Betreff: 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