First page Back Continue Last page Overview Graphics
The “Keep” pattern \K
Originally implemented via Regexp::Keep by Jeff Pinyan (japhy)
Says that everything before the \K should not be included in a match. Same thing as <( in perl6.
This is effectively a form of variable length positive look-behind, but much more efficient.
Especially useful in substitution as it means you often can avoid capturing
Thanks japhy!