Javascript Regex/Regular Expression cheatsheet This tool processes all data locally in your browser. No information is ever sent to any server. Completely free, no registration required.
A Regex Cheat Sheet (Regex Memo) provides a quick, searchable reference of regular expression syntax, tokens, flags, and examples. Regex is one of the most powerful yet frustrating tools in programming — the syntax is dense and easily forgotten between uses. This reference is organized by what you need to match (digits, words, boundaries, groups, lookarounds, quantifiers) rather than alphabetically, making it a practical coding companion.
Browse regex tokens by category: Character Classes, Quantifiers, Anchors, Groups, Lookarounds, Flags, and Common Patterns. Each entry shows the token, what it matches, and a usage example. The search bar finds tokens by name, symbol, or description. Common pattern templates (email, URL, phone, IP address, date) are pre-built for copy-paste use.
Essential Tokens:\n• . (any char except \\n), \\d (digit), \\w (word), \\s (whitespace)\n• * (0+), + (1+), ? (0 or 1), {n}, {n,m}\n• ^ (start), $ (end), \\b (word boundary)\n• (...) (capture), (?:...) (non-capture), (?<name>...) (named)\n• (?=...) (lookahead), (?<=...) (lookbehind)\n• | (alternation / OR)\n\nCommon Patterns:\n• Email: /\\S+@\\S+\\.\\S+/\n• URL: /https?:\\/\\/[^\\s]+/\n• Phone (US): /\\+?1?\\s*\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}/\n• Date (YYYY-MM-DD): /\\d{4}-\\d{2}-\\d{2}/
Free online Regex cheatsheet — no signup, 100% client-side processing. All data stays in your browser.