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

Page principale
Supprimer ce message
Auteur: ND
Date:  
À: Pcre-dev
Sujet: 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.