Unsupported input
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
Search tools and pages.
Search regular expression tokens, examples, flags, groups, and copy-ready recipes
sidebar • 160x600
Written by Giorgos Kostas. Last reviewed:
A regular expression (regex) is a concise pattern language for matching and extracting parts of text, supported across virtually every programming language.
Regex Cheatsheet is an online tool that helps you search regular expression tokens, examples, flags, groups, and copy-ready recipes.
Use it when you need to process regex Cheatsheet quickly and keep the input, output, and controls in the same browser tab.
Start with the regex Cheatsheet input you want to process in Regex Cheatsheet.
Get a regex Cheatsheet result from Regex Cheatsheet that is ready to review, copy, and reuse in the next step of your workflow.
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
Missing fields or partial content can block processing or produce weak results.
Fix: Provide the full required input before running the tool.
Sample or placeholder values can lead to output that looks valid but is not ready for real use.
Fix: Replace placeholders with your actual values before relying on the result.
Yes. Matches are highlighted as you type, and the match count plus capture groups update on every keystroke. For very long inputs, highlighting is debounced to keep typing responsive.
Regex Cheatsheet uses the same Myers diff algorithm that git uses under the hood, so the output lines up with what you'd see in a git diff. Line-level and character-level modes are both available.
Inputs are persisted to your browser's local storage between reloads — you can close the tab and come back to the same regex or input later. The data stays on your device.
Yes. All standard JavaScript regex flags — g, i, m, s, u, y — are exposed as checkboxes in the UI, and the flag string is included when you copy the pattern.
Matches can be exported as JSON (one object per match with index, value, and capture groups), CSV, or a raw list. The export respects the current flags and input.
Continue the workflow with related tools for regex Cheatsheet, adjacent input and output steps, or other utilities in the same category. You can also browse the full Visual & Testing Tools category for more options.
Test and debug regular expressions
Visualize SQL CREATE TABLE or DBML as an ERD with table cards, primary-key badges, foreign-key arrows, and per-table detail panels
Compare two texts and highlight differences
View and preview HTML
Test internet ping, download speed, and upload speed in your browser with a live gauge, connection details, and same-origin Mbps measurements.
Compare two JSON documents with a structure-aware diff tree, ignore-order options, and JSON Patch (RFC 6902) plus jsondiffpatch delta export
Explore any JSON document as an interactive node-link graph with collapsible nodes, $ref/href detection, and PNG plus DOT export
Test JSONPath expressions against JSON data
View and explore JSON data
Edit and preview Markdown with live preview
Preview Markdown as rendered HTML
Visualize OpenAPI / Swagger endpoint relationships, schema dependencies, and request flows as an interactive node-link graph with PNG export
content bottom • up to 300x250