Re: [pcre-dev] Remove some restrictions of lookbehind assert…

トップ ページ
このメッセージを削除
著者: ND
日付:  
To: Pcre-dev
題目: Re: [pcre-dev] Remove some restrictions of lookbehind assertions
May be it can be useful to have ability to set a limits of lookbehind
search for performance reasons.
I can imagine a rule: If nonfixedlength lookbehind immediately preceded by
capture group, then it is restricted to start position of this group.

For example in pattern
abc(\w++)(?<=\d+)
lookbehind limits are [3;n-1]

If there is no immediately preceded capture group then lookbehind limits
are [0;n-1].