Home / Dev Tools / Security & Testing / Regex Cheat Sheet

Regex Cheat Sheet

A quick reference guide to common regular expression syntax and patterns.

Runs entirely in your browser — a static reference, nothing is sent to a server. Syntax shown is ECMAScript (JavaScript) regex flavor; other flavors (PCRE, Python, POSIX) may differ slightly, particularly for named groups and lookbehind support.

Frequently Asked Questions

ECMAScript (JavaScript) syntax. Other flavors like PCRE, Python, or POSIX may differ slightly, particularly around named groups and lookbehind support.

Yes — the search box filters by token, description, or example across all categories, and you can also filter by category (Anchors, Quantifiers, etc.).

They're solid starting points for common cases but are intentionally simple — for example the email pattern isn't fully RFC-compliant. Test against your real-world data before relying on them in production.

Found this useful? Share it:
Quick Feedback