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

Page principale
Supprimer ce message
Auteur: ND
Date:  
À: Pcre-dev
Sujet: Re: [pcre-dev] Subject length lower bound calculation
On 2019-06-05 08:16, ph10 wrote:
>Because PCRE2 isn't clever enough to deal with lookarounds whencomputing
> the minimum length.
>


May be there is a some space for optimization there.

PCRE analyze subpattern in lookaround and say:
First code unit = 'a'
Last code unit = 'c'

So it already knows that "Subject length lower bound" is greater than 0.
Isn't it?