Szerző: ph10 Dátum: Címzett: ND CC: Pcre-dev Tárgy: Re: [pcre-dev] \K in lookahead assertion gives unpredictable result
On Sun, 29 Dec 2013, ND wrote:
> 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.
What do other people think about this idea? It is, of course, easy to
implement.
> Or ignore \K in all assertions.
It is documented that \K is not ignored in positive assertions, but is
ignored in negative assertions. Changing this would be incompatible, and
there may be useful examples (not involving setting start past the end)
that people are already using.