About this tool
Regex Cheat Sheet is a searchable JavaScript regular expression reference where every entry is live. The page is organized into the categories you actually look up: anchors (^, $, \b), character classes ([abc], [^abc], ranges, .), shorthand classes (\d, \w, \s and their negations), quantifiers (?, *, +, {n}, {n,m}, lazy forms), groups and references (capturing, non-capturing, named, numbered and named backreferences), alternation, lookaround (positive and negative lookahead and lookbehind), escapes and special characters, flags (g, i, m, s, u, y), Unicode property escapes (\p{L}, \p{N}, scripts), and a final block of common patterns ready to copy: simple email, URL, hex color, ISO 8601 date, IPv4 shape, canonical UUID, slug-safe identifier, E.164 phone number. Every entry shows the token, what it does, a worked example, and a small editable test box where the matches highlight as you type, so you can confirm the rule fires the way you expect before pasting it into your code. A quick playground sits at the top of the page for trying any pattern with full flag control and copy buttons for both the regex literal and the new RegExp constructor form. A search box and section filters help you jump straight to the token you need. Built for developers working in JavaScript, TypeScript, Node.js, and browser code, but most of the syntax also applies to Python, PHP, Java, and Go with minor differences. Nothing is uploaded; pattern matching runs in your browser through the native RegExp engine.
Free to use. Works in your browser. No signup, no login.