Regex Cheatsheet - Regular Expression Quick Reference

Quick reference for regular expression patterns. Character classes, quantifiers, anchors, and common patterns.

Share
Back to Regex Cheatsheet

Lazy Zero or More *?

Quantifier

Matches preceding expression as few times as possible

Pattern

*?

Examples

<.*?>

Lazy match HTML tags

Matches: <div>, <a>

".*?"

Matches shortest quoted string

Matches: "hello"

Related Tools

More Text Tools