Re: [pcre-dev] No capture in nested negative assertions

2018-07-09 Thread ND via Pcre-dev
On 2018-07-10 04:48, ND wrote: On 2018-07-09 09:25, ph10 wrote: >If any branch in a negative assertion succeeds, the captures are> (temporarily) kept, but as the whole assertion now fails, there is an> external backtrack, which discards the captures. > To what point backtracking is? I guess

Re: [pcre-dev] No capture in nested negative assertions

2018-07-09 Thread ND via Pcre-dev
On 2018-07-09 09:25, ph10 wrote: If any branch in a negative assertion succeeds, the captures are (temporarily) kept, but as the whole assertion now fails, there is an external backtrack, which discards the captures. To what point backtracking is? I guess Perl doesn't backtrack if last

Re: [pcre-dev] No capture in nested negative assertions

2018-07-09 Thread ph10
On Sun, 8 Jul 2018, ND via Pcre-dev wrote: > May I suggest alternative approach? It is simple and more consistent. I think > Perl use it: > > Capture is discarded ONLY if it was happen in non-matching branch. Actually, this is *exactly* what should already happen! I was going to post an