Negative lookbehind
(?<!...)Ensures that the given pattern would not match and end at the current position in the expression. Does not consume characters.
Examples
Match Sample:
not foo but foo
Regex Example:
(?<!not )foo
PCRE PYTHON
Share & Embed
Use this snippet to display this token on your own site.
<!-- Embed Regex Token: (?<!...) --> <code class="regex-token">(?<!...)</code> - Negative lookbehind <small><a href="https://testregex.com/cheatsheet/negative-lookbehind">See details</a></small>