Toolsnest

Regex Cheat Sheet

A concise regular-expression cheat sheet covering character classes, anchors, quantifiers, groups, lookaround and flags. Runs in your browser.

Character classes

.Any character except newline
\d \DDigit / non-digit
\w \WWord char / non-word char
\s \SWhitespace / non-whitespace
[abc]Any of a, b or c
[^abc]Not a, b or c
[a-z]Range a to z

Anchors

^Start of string / line
$End of string / line
\b \BWord boundary / non-boundary

Quantifiers

*0 or more
+1 or more
?0 or 1 (optional)
{n}Exactly n
{n,}n or more
{n,m}Between n and m
*? +?Lazy (non-greedy) versions

Groups & lookaround

(abc)Capturing group
(?:abc)Non-capturing group
(?<name>…)Named group
a|bAlternation (a or b)
(?=…)Positive lookahead
(?!…)Negative lookahead
(?<=…)Positive lookbehind
(?<!…)Negative lookbehind

Flags

gGlobal — all matches
iCase-insensitive
mMultiline ^ and $
sDotall — . matches newline
uUnicode
ySticky

A concise regular-expression cheat sheet covering character classes, anchors, quantifiers, groups, lookaround and flags. Runs in your browser. Regex Cheat Sheet is a free, browser-based tool in the Toolsnest developer tools collection — there is nothing to install, no account to create and no watermark on your results. It works on desktop, tablet and mobile, and because the work happens on your own device it stays fast even with large inputs.

How to use the Regex Cheat Sheet

  1. Open the Regex Cheat Sheet — it runs entirely in your browser with no setup.
  2. Paste or type your input into the text area, or upload a file where supported.
  3. Set any options you need, then run the conversion or transformation.
  4. Review the output instantly; large inputs are handled locally without lag.
  5. Copy the result to your clipboard or download it. Your data never leaves the page.

Why use the Regex Cheat Sheet?

  • 100% free with no limits, no sign-up and no watermarks.
  • Private by design — your data are processed in your browser and never uploaded to a server.
  • Fast and lightweight, with instant results even on a phone or a slow connection.
  • Works everywhere — any modern browser on Windows, macOS, Linux, Android or iOS.
  • Part of a full developer tools suite, so related regex cheat sheet tasks are one click away.

Is it private and secure?

Your privacy is built in. The Regex Cheat Sheet runs completely on your device, so whatever you enter stays in your browser and is never transmitted, logged or stored on any server.

Frequently asked questions

Is the Regex Cheat Sheet free to use?

Yes. The Regex Cheat Sheet is completely free with no usage limits, no sign-up and no watermarks. Every feature is available to everyone.

Is my data sent to a server?

No. The Regex Cheat Sheet works entirely inside your browser, so your data never leave your device. Nothing is uploaded, stored or shared.

Do I need to install anything or create an account?

No installation and no account are needed. Open the page in any modern browser and start using the Regex Cheat Sheet straight away.

Does the Regex Cheat Sheet work on mobile?

Yes. It is fully responsive and works in the browser on Android and iOS phones and tablets, as well as on desktop.

Will it work offline?

Once the page has loaded, the Regex Cheat Sheet keeps working even if your connection drops, because all the processing runs on your device rather than on a server.

Related tools