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

2019-07-02 Thread Максим via Pcre-dev
And it totally contradicts the Perl documentation, in particular, this  sentence:  Note that if this operator is used and NOT inside of an alternation  then it acts exactly like the "(*PRUNE)" operator.  Sorry I'm ND but write from another mailbox. I guess from Perl point of view (*THEN)

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

2019-07-02 Thread ph10
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

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

2019-07-02 Thread ND via Pcre-dev
On 2019-07-02 14:34, ph10 wrote: A Perl developer has admitted there is some ambiguity, but suggests that (*COMMIT) just means "never advance the starting point". That patterncan find a match without advancing the starting point. I have pointedout that, in that case, /.*(*COMMIT)c/ should

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

2019-07-02 Thread ph10
On Mon, 1 Jul 2019, ND via Pcre-dev wrote: > As you participate in Perl regex development can you take a look at another > Perl bug please: I do not participate in Perl regex development. I just report bugs when I find them, using the perlbug command. You could do this yourself. (And you seem

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

2019-07-02 Thread ph10
On Tue, 2 Jul 2019, Zoltán Herczeg wrote: > If you are right about the internal working of (*THEN), then this verb > has a very unclear and inconsistent behavior, which is very hard to > track for a user. And it totally contradicts the Perl documentation, in particular, this sentence: Note

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

2019-07-02 Thread ph10
On Tue, 2 Jul 2019, Zoltán Herczeg wrote: > Perhaps the misunderstanding comes from the fact that we are talking > about the pattern and they talk about the matching process. So (*THEN) > simply starts a backtrack, and when an alternation is encountered, it > switches to the next alternative.

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

2019-07-02 Thread Zoltán Herczeg
> Note that if this operator is used and NOT inside of an alternation > then it acts exactly like the "(*PRUNE)" operator. > But it doesn't. Perhaps the misunderstanding comes from the fact that we are talking about the pattern and they talk about the matching process. So (*THEN) simply starts a

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

2019-07-02 Thread Zoltán Herczeg
If you are right about the internal working of (*THEN), then this verb has a very unclear and inconsistent behavior, which is very hard to track for a user. I think it should made obsolete and removed eventually. Regards, Zoltan   -- ## List details at