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

Top Page

Reply to this message
Author: ND
To: Pcre-dev
Subject: 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
lookbehind limits are [3;n-1]

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