Reputation: 43683
The \K
escape sequence resets the beginning of the match to the current position in
the token list (this only affects what is reported as the full match).
What environments/languages/versions support \K
(keep) in its regular expression engines and what libraries are needed (if any) to use this feature within patterns?
Upvotes: 55
Views: 17583
Reputation: 185530
The \K
escape sequence is supported by several engines, languages or tools, such as:
...and (so far) not supported by:
\K
, but its \zs
is equivalentUpvotes: 55