Use the shortest possible match.
Section: Quantifiers
Lazy zero or more
regex
regex
<.*?>Explanation
Common for tag-like extraction where greedy matching would overrun.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Quantifiers