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

トップ ページ
このメッセージを削除
著者: ND
日付:  
To: Pcre-dev
題目: 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.