On the perlre's extended patterns page we can read about \K:
Keep the stuff left of the
\K, don't include it in $&
Here is the practical example using GNU grep (which actually keeps stuff right of the \K):
$ echo "foo bar buzz" | grep -Po "foo \Kbar buzz"
bar buzz
Is there any opposite sequence of \K?
For example to print just bar, like:
$ echo "foo bar buzz" | grep -Po "foo \Kbar\X buzz"
bar