Re: [pcre-dev] \K in lookahead assertion gives unpredictable…

Top Page
Delete this message
Author: ND
Date:  
To: Pcre-dev
Subject: Re: [pcre-dev] \K in lookahead assertion gives unpredictable result
On 2013-12-28 20:00, ph10 wrote:
>A different application canchose to make a different interpretation of
> the values that the PCRElibrary returns (which in this case are 2 for
> the start ad 0 for theend).


I guess many real applications can generate unpredictable results (alike
pcretest.exe) when returned by pcre_exec() start position will be greater
than end position.

May be better way is to document that if start position is greater then
end position, then start position value sets to end position value.
Or ignore \K in all assertions.


Best regards.