R

TestRegex

Positive lookahead

(?=...)

Matches the given subpattern without consuming characters

Examples

Match Sample:
foobar foobaz
Regex Example:
foo(?=bar)
PCRE JAVASCRIPT PYTHON

Share & Embed

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

<!-- Embed Regex Token: (?=...) -->
<code class="regex-token">(?=...)</code> - Positive lookahead
<small><a href="https://testregex.com/cheatsheet/positive-lookahead">See details</a></small>