Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Digits Only Pattern

Common Pattern

Match strings containing only digits

Pattern

^\d+$

Examples

12345

Digits only string

Matches: 12345

Related Tools

More Text Tools