Calculator
What the Regex Cheat Sheet does
Regex Cheat Sheet: calculates Status and Reference from Show. Example: show Basics gives status Cheat sheet.
Feed it Show; it hands back Status and Reference. Values update as you type, so comparing options is a matter of editing one field.
Typical users are anyone cleaning up machine output. Reading raw machine output is painful; a formatted view makes the structure obvious.
Nothing leaves the tab. You can watch your browser network panel while you use it and see for yourself.
Below the tool you will find the field reference, the method, and an example computed from the values it opens with.
What do the Regex Cheat Sheet fields mean?
The Regex Cheat Sheet uses 1 input. Sensible defaults are loaded up front, which means you can change one number at a time instead of filling the whole form first.
| Field | What to enter | Default |
|---|---|---|
| Show | choose from Basics, Quantifiers or Groups | Basics |
How does the Regex Cheat Sheet work?
Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same calculation.
Bad input produces an error, never a confident-looking wrong answer.
Worked example
These are the values the Regex Cheat Sheet loads by default, and the result it produces from them. These are the exact values loaded when the page opens, and the answer they produce.
| Show | Basics |
|---|
| Status | Cheat sheet |
|---|---|
| Reference | . any char \d digit \w word \s whitespace ^ start $ end |
How to use it
- Pick a value for Show: the options are Basics, Quantifiers or Groups.
- The answer follows your cursor, in effect. Change a field and read the new figure.
- Look at Status and Reference in the output panel.
- Print gives a tidy version without the navigation, which is handy for attaching to a file.
What this tool does not do
- Processing happens in your browser, so very large inputs are bounded by available memory.
- Output follows the common convention for this format; a specific toolchain may have its own house style.
- Where a standard has revisions, the version used is the one named in the method section.
Frequently asked questions
You need Show. Nothing starts empty, so you can change one value at a time and watch how the result responds.
With the values loaded when the page opens, status comes out as Cheat sheet. Overwrite any of the starting values and the result follows.
No. Nothing is uploaded: useful when the text you are inspecting contains keys or customer records.
No payment and no login. Advertising covers the running costs.
The computation is exact; how much you should trust the answer depends on how good your inputs are.