Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Zero or One ?

Quantifier

Matches preceding expression zero or one time (optional)

Pattern

?

Examples

colou?r

Matches "color" or "colour"

Matches: color, colour

https?

Matches "http" or "https"

Matches: http, https

Related Patterns

Zero or More *lazy-quantifier

Related Tools

More Text Tools