R

TestRegex

Reset match

\K

Sets the given position in the regex as the new "start" of the match. This means that nothing preceding the \K will be captured in the overall match.

Examples

PCRE

Share & Embed

Use this snippet to display this token on your own site.

<!-- Embed Regex Token: \K -->
<code class="regex-token">\K</code> - Reset match
<small><a href="https://testregex.com/cheatsheet/reset-match">See details</a></small>