Author: ph10 Date: To: Pcre-dev CC: ND Subject: Re: [pcre-dev] (*THEN) works differently in Perl
On Tue, 2 Jul 2019, I wrote:
> > PCRE2 version 10.33 2019-04-16
> > /\A(?:.(*COMMIT))*c/
> > abcd
> > No match
> >
> > But Perl reports that this is successful match "abc".
>
> I think this is also a Perl bug and I will report it.
A Perl developer has admitted there is some ambiguity, but suggests that
(*COMMIT) just means "never advance the starting point". That pattern
can find a match without advancing the starting point. I have pointed
out that, in that case, /.*(*COMMIT)c/ should also match, but it
doesn't. This is still under discussion by the Perl people. It may take
some time for a conclusion to emerge.