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

Pàgina inicial
Delete this message
Autor: ND
Data:  
A: Pcre-dev
Assumpte: Re: [pcre-dev] No capture in nested negative assertions
On 2018-07-07 16:50, ph10 wrote:

> I decided that the most straightforward approach
> was to discard all capturing inside negative assertions when the
> assertion completes.



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.