Re: [pcre-dev] (*THEN) works differently in Perl

Página Principal
Apagar esta mensagem
Autor: ph10
Data:  
Para: Pcre-dev
CC: ND
Assunto: 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.

Regards,
Philip

--
Philip Hazel