Regex Tester
Test regular expressions and highlight matches in real time.
A searchable quick reference for regex syntax — click any card to copy.
The Regex Cheat Sheet is a searchable quick reference covering the most common regular expression syntax, organized into seven categories.
Anchors, character classes, quantifiers, groups, escape sequences, flags, and replacement tokens are all included. Click any card to copy its syntax instantly — ready to paste into your editor or code.
This cheat sheet is based on the JavaScript ECMAScript regex engine. Most syntax is shared with Python, Java, Go, PHP, and other languages, but some details differ.
Yes. All eight JavaScript flags are included — g, i, m, s, u, v, d, and y — each with a description.
Yes. The replacement token section covers $&, $1, $<name>, $`, $', and $$.
No. Everything runs in your browser.