JSON Formatter & Validator
Format, minify, and validate JSON with syntax highlighting, tree view, JSON path on click, error detection with line/column, stats, and file upload/download.
FREE ONLINE TOOL
Interactive regex quick-reference with live test area — learn and test common patterns instantly.
Regex Cheat Sheet is a free, browser-based developer tool. Interactive regex quick-reference with live test area — learn and test common patterns instantly.
More Developer Tools
LLM API Price CalculatorCompare API prices across OpenAI, Anthropic Claude, Google Gemini, Mistral and m Claude TokenizerCount tokens and estimate input cost for Anthropic Claude Opus, Sonnet and Haiku Gemini Token CounterCount tokens for Google Gemini 2.5 Pro, Flash and Nano models with cost estimati LLM Context Window VisualizerVisualize how much of an LLM context window your prompt uses across 20+ popularA regex cheat sheet collects the syntax tokens, quantifiers, character classes, anchors, and flags of regular-expression dialects into a single searchable reference. Even experienced engineers who write regex every week forget whether \w includes underscores (it does), whether \b is a zero-width assertion at word boundaries (yes), or how (?i) inline flags differ across PCRE, ECMAScript, and .NET — in ECMAScript (?i) is a syntax error until ES2025 landed flag groups, whereas PCRE has accepted them since the 1990s. The tool shows every common token with a one-line description, a live example input and match, and dialect differences flagged when they matter. It covers anchors (^, $, \A, \Z, \b, \B), character classes (\w, \s, \d, [[:alpha:]]), quantifiers (*, +, ?, {n,m}, plus lazy and possessive variants), groups (capturing, non-capturing, named, lookaround), and Unicode properties \p{...} for dialects that support them.
Regex knowledge compounds over a career but also decays: the tokens for a weekly user stay fresh while obscure features like atomic groups (?>...) and possessive quantifiers ++, *+ fade between uses. A cheat sheet is the shortest distance between 'I know I need this' and 'I have the right syntax in front of me'. It is also a teaching tool: a junior engineer learning regex needs the big picture in one view, not a Mozilla MDN deep-dive per token.
\d claiming to match only ASCII digits. The cheat sheet reminds him that in JavaScript with the u flag, \d still matches only ASCII — but in .NET with the default options, \d matches every Unicode digit character, including ٠ (Arabic-Indic zero). He leaves a comment asking for the u flag or [0-9] to be explicit, catching a subtle cross-language bug before it hits production.? after * or + makes it non-greedy. The five-second lookup avoids the cognitive interruption of switching tabs to MDN, and the pair stays in flow — the value of a well-scoped reference is measured in interruptions avoided.re module page does not.Regex dialects fall into distinct families. ECMAScript regex, specified in ECMA-262 Section 22.2, is the JavaScript built-in — limited lookbehind (added in ES2018), no atomic groups until ES2025, Unicode property escapes only with the u or v flags. PCRE, the Perl-Compatible Regular Expressions library used by PHP natively and (optionally) Python via the third-party regex module, supports everything including recursion and subroutine references. RE2, the library behind Go and Google Cloud products, guarantees linear-time matching via Thompson NFA and therefore omits lookaround and backreferences entirely — a deliberate trade of power for DoS safety. .NET regex supports variable-width lookbehind that PCRE rejected until version 10.30, plus balancing groups for nested-delimiter matching. POSIX-BRE and POSIX-ERE (used by grep and sed by default) are simpler still — no lazy quantifiers, no non-capturing groups, and + and ? require backslash escapes in BRE. The cheat sheet marks each token with the dialects that support it, saving you from debugging a pattern that works on regex101 but fails silently in production.
Unicode support is where cheat-sheet knowledge breaks down. In ECMAScript, . matches any character except line terminators — including astral code points only when the u flag is set. Without u, emoji like 🚀 count as two characters because they are a UTF-16 surrogate pair. Always add the u flag to any regex that might touch user-generated content, and prefer \p{L} over [a-zA-Z] for letters in internationalised software.
The implementation favours correctness over cleverness: standard algorithms, documented library functions, and defensive input validation. No telemetry is attached to the computation. When the underlying standard offers multiple conforming behaviours, the tool surfaces the choice explicitly rather than defaulting silently. Output is round-trippable — re-inputting it into any spec-compliant parser produces an equivalent result.
Regex Cheat Sheet is a free, browser-based utility in the Developer category. Interactive regex quick-reference with live test area — learn and test common patterns instantly. Standard processing runs on the client — no account is required, and there is no paywall or usage cap. The implementation uses audited standard-library primitives and published specifications rather than proprietary algorithms, so the output is reproducible and transparent.
FastTool targets WCAG 2.2 Level AA conformance: keyboard-navigable controls, visible focus states, semantic HTML, sufficient colour contrast, and screen-reader compatibility. If you encounter an accessibility issue, please reach us via the site footer.
Regex Cheat Sheet gives you a fast, private way to interactive regex quick-reference with live test area — learn and test common patterns instantly using client-side JavaScript. From individual freelancers writing their first app to enterprise teams shipping production code, the need to interactive regex quick-reference with live test area — learn and test common patterns instantly is universal across the development lifecycle. Regex Cheat Sheet keeps things focused: one input area, immediate processing, and a clear output ready to view, copy, or download the result. The tool bundles clickable pattern examples alongside live test area and anchors and quantifiers, giving you everything you need in one place. Responsive design means Regex Cheat Sheet works equally well on mobile and desktop. You can even add the page to your home screen on iOS or Android for instant, app-like access without downloading anything. Your data stays yours. Regex Cheat Sheet performs standard calculations and transformations locally, without requiring a server-based project workspace. Most users complete their task in under 30 seconds. Regex Cheat Sheet is optimized for the most common developer scenarios while still offering enough flexibility for advanced needs. Save this page and Regex Cheat Sheet is always ready when you need it — today, tomorrow, and for every future task.
You might also like our Text Diff / Compare. Check out our HTML Entity Encoder/Decoder. For related tasks, try our SQL Formatter & Beautifier.
A cheat sheet gives quick reminders without searching through full regex documentation.
Anchors are essential when a pattern must validate the whole input instead of a substring.
| Feature | Browser-Based (FastTool) | CLI Tool | IDE Extension |
|---|---|---|---|
| Price | Free forever | Varies widely | Monthly subscription |
| Data Security | Client-side only | Depends on implementation | Third-party data handling |
| Accessibility | Open any browser | Install per device | Create account first |
| Maintenance | Zero maintenance | Updates and patches | Vendor-managed |
| Performance | Local device speed | Native performance | Server + network dependent |
| Learning Curve | Minimal, use immediately | Moderate to steep | Varies by platform |
No tool is perfect for every scenario. Here are situations where a different approach will serve you better:
Regex Cheat Sheet is a practical utility for programmers working across different languages and environments. Interactive regex quick-reference with live test area — learn and test common patterns instantly. In professional development, the ability to quickly transform, validate, or analyze data without switching contexts or installing dependencies directly impacts productivity. This tool runs primarily in your browser using JavaScript, so standard workflows do not require a FastTool application server — an important consideration when working with proprietary code or sensitive configuration files.
The task that Regex Cheat Sheet handles — interactive regex quick-reference with live test area — learn and test common patterns instantly — is something that developers and programmers encounter regularly in their work. Before tools like this existed, the same task required either specialized desktop software, manual effort, or custom scripts written from scratch. Browser-based tools have changed this landscape by providing instant access to focused functionality without the overhead of software installation, license management, or environment configuration.
Features like clickable pattern examples, live test area demonstrate that browser-based tools have matured to the point where they can handle tasks that previously required dedicated applications. As web technologies continue to advance — with improvements in JavaScript performance, Web Workers for parallel processing, and modern APIs like the Clipboard API and File System Access API — the gap between browser tools and native applications continues to narrow. Regex Cheat Sheet represents this trend: professional-grade functionality delivered through the most universal platform available.
Architecturally, Regex Cheat Sheet keeps standard processing in the browser with capabilities including clickable pattern examples, live test area, anchors and quantifiers. The renderer hydrates on page load, the tool's logic is deterministic, and results are produced by calling standards-track APIs (Web Crypto for random and hashes, TextEncoder for bytes, Blob/URL for downloads). The code is straightforward to audit in DevTools.
ECMAScript 2025 added iterator helpers, Set methods, and significant pattern-matching progress, making functional JavaScript more ergonomic than at any prior point in its history.
UTF-8 encoding can represent over 1.1 million characters, covering every writing system in the Unicode standard.
Part of the FastTool collection, Regex Cheat Sheet is a zero-cost developer tool that works in any modern browser. Interactive regex quick-reference with live test area — learn and test common patterns instantly. Capabilities like clickable pattern examples, live test area, anchors and quantifiers are available out of the box. Because it uses client-side JavaScript, standard input can be processed without a FastTool application server.
Using Regex Cheat Sheet is straightforward. Open the tool page and you will see the input area ready for your data. Interactive regex quick-reference with live test area — learn and test common patterns instantly. The tool provides clickable pattern examples, live test area, anchors and quantifiers so you can customize the output to your needs. Once you have your result, use the copy or download button to save it. Everything runs in your browser — no server round-trips, no waiting.
Check out: JSON Formatter & Validator
Yes. Regex Cheat Sheet runs primarily in your browser, so standard inputs stay on your device. FastTool does not intentionally upload or log tool input for this workflow. This client-side approach is ideal for developer work that involves private or confidential information. Even if you are on a corporate network with strict data policies, using Regex Cheat Sheet does not send tool input to a FastTool application server.
Absolutely. Regex Cheat Sheet adapts to any screen size, so it works just as well on a phone or tablet as it does on a laptop or desktop. The responsive layout rearranges elements to fit smaller screens while keeping every feature accessible. On iOS, tap the share icon and select Add to Home Screen to create an app-like shortcut. On Android, choose Install App or Add to Home Screen from the browser menu for the same quick-access experience.
You might also find useful: Base64 Encode/Decode
Yes, after the initial page load. Regex Cheat Sheet does not need a server to process your data, so going offline will not interrupt your workflow or cause you to lose any work in progress. Just make sure the page is fully loaded before disconnecting — you can tell by checking that all interface elements have appeared. This offline capability is a direct benefit of the client-side architecture that also provides privacy and speed.
Most online developer tools either charge money for full access or require account-based server processing, which raises both cost and data-handling concerns. Regex Cheat Sheet avoids those tradeoffs for standard workflows: it is free, browser-first, and delivers instant results. On top of that, it supports 21 languages with full right-to-left layout support, works offline after loading, and runs on any device without requiring an app download or account creation.
Check out: Regex Tester
During code reviews or debugging sessions, Regex Cheat Sheet helps you inspect and manipulate data formats on the fly, saving time compared to writing one-off scripts. The browser-based approach means you can start immediately without any installation, making it practical for time-sensitive situations where setting up dedicated software is not an option.
When building or testing APIs, use Regex Cheat Sheet to prepare test payloads, validate responses, or transform data between formats. The browser-based approach means you can start immediately without any installation, making it practical for time-sensitive situations where setting up dedicated software is not an option.
Students and educators can use Regex Cheat Sheet to experiment with developer concepts interactively, seeing results in real time. The instant results and copy-to-clipboard functionality make this workflow fast and efficient, letting you move from task to finished output in a matter of seconds.
Use Regex Cheat Sheet when preparing pull requests for open source projects — quickly format, validate, or transform code snippets before committing. The browser-based approach means you can start immediately without any installation, making it practical for time-sensitive situations where setting up dedicated software is not an option.
MOST POPULAR
The most frequently used tools by our community.
BROWSE BY CATEGORY
Find the right tool for your task across 17 specialized categories.
Authoritative sources and official specifications that back the information on this page.
Authoritative JavaScript regex spec
Theory and history
Developer-facing reference