Re: [pcre-dev] Possessive quantifier not work after {1}

Top Page

Reply to this message
Author: ph10
Date:  
To: ND
CC: Pcre-dev
Subject: Re: [pcre-dev] Possessive quantifier not work after {1}
On Mon, 17 Jun 2019, ND via Pcre-dev wrote:

> PCRE2 version 10.33 2019-04-16
> /(?:a|ab){1}+c/
> abc
> 0: abc
>
> No match expected, but pattern matched.


You are getting very good at finding PCRE2 bugs. :-) The quantifier {1}
was just being ignored, but that is wrong when it is {1}+ applied to a
parenthesized item. I have fixed the bug.

Philip

--
Philip Hazel