著者: ND
日付:
To: Pcre-dev
題目: 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?