Re: [pcre-dev] Max lookbehind calculation

Góra strony
Delete this message
Autor: ph10
Data:  
Dla: Pcre-dev
CC: ND
Temat: Re: [pcre-dev] Max lookbehind calculation
On Sun, 23 Jun 2019, I wrote:

> I woke up in the middle of last night with an idea as to how it could
> easily be made better, but I haven't looked at the code yet. I am busy
> with other things today and tomorrow, but then I will see if my midnight
> bright idea actually works.


I have committed a patch which I believe solves this problem:

PCRE2 version 10.34-RC1 2019-04-22
re> /(?<=(?<=a)b)c.*/I

Capture group count = 0
Max lookbehind = 2
First code unit = 'c'
Subject length lower bound = 1

Regards,
Philip

--
Philip Hazel