R

TestRegex

Ungreedy

U

The engine will per default do lazy matching, instead of greedy. This means that a ? following a quantifier instead makes it greedy.

Examples

PCRE

Share & Embed

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

<!-- Embed Regex Token: U -->
<code class="regex-token">U</code> - Ungreedy
<small><a href="https://testregex.com/cheatsheet/ungreedy">See details</a></small>