Regex Cheatsheet

Searchable reference for regex tokens, quantifiers, groups, lookarounds, and flags.

Character classes
.Any char except newline
\dDigit [0-9]
\DNon-digit
\wWord char [A-Za-z0-9_]
\WNon-word char
\sWhitespace
\SNon-whitespace
[abc]Any of a, b, c
[^abc]None of a, b, c
[a-z]Range a to z
Anchors
^Start of string / line
$End of string / line
\bWord boundary
\BNon-word boundary
Quantifiers
*0 or more
+1 or more
?0 or 1
{n}Exactly n
{n,}n or more
{n,m}Between n and m
*?Lazy 0 or more
Groups
(abc)Capture group
(?:abc)Non-capturing group
(?<name>abc)Named group
a|ba or b
\1Backreference to group 1
Lookarounds
(?=abc)Positive lookahead
(?!abc)Negative lookahead
(?<=abc)Positive lookbehind
(?<!abc)Negative lookbehind
Flags
gGlobal
iCase-insensitive
mMultiline
sDotall
uUnicode
ySticky

How to use Regex Cheatsheet

  1. 1
    Open Regex Cheatsheet

    Open the regex cheatsheet on Easutil — there is nothing to install and no account to create.

  2. 2
    Add your input

    Paste or type your code or payload into the input area, or adjust the options shown above the result.

  3. 3
    Review the output

    Regex Cheatsheet updates the formatted result instantly as you type, so you can iterate without pressing a button.

  4. 4
    Copy or download

    Use the Copy button to grab the result, or download it where a file export is offered.

Common use cases

  • Quickly process your code or payload while debugging
  • Share a clean, readable result with a teammate
  • Avoid pasting sensitive data into an unknown online service

Regex Cheatsheet FAQ

Is Regex Cheatsheet free to use?

Yes. Regex Cheatsheet is completely free on Easutil, with no signup, no usage limits and no watermarks.

Is my data private when I use Regex Cheatsheet?

Yes. Regex Cheatsheet runs entirely in your browser using JavaScript — your input is never uploaded to a server or stored anywhere.

Do I need to install anything to use Regex Cheatsheet?

No. It works in any modern browser on desktop and mobile — Chrome, Firefox, Safari and Edge.

Does Regex Cheatsheet work offline?

Once the page has loaded, regex cheatsheet keeps working without a network connection because all the processing happens client-side.

Looking for something similar? Browse all developer tools on Easutil →

Related tools

All →