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

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