often.cloud
← all tools

Regex cheat sheet

Web

Searchable reference for JavaScript regular expressions.

What this tool helps with

Searchable reference for JavaScript regular expressions. The Regex cheat sheet tool covers regex, regexp, cheat, and sheet workflows and is grouped with the rest of the web utilities on often.cloud. Everything runs locally in your browser — there is no upload step, so values you paste in for regex work stay on your machine.

Character classes

.Any character except newline
\w \d \sWord, digit, whitespace
\W \D \SNOT word, digit, whitespace
[abc]Any of a, b, c
[a-z]Range a to z
[^abc]NOT a, b, or c
\bWord boundary

Quantifiers

a*0 or more a
a+1 or more a
a?0 or 1 a
a{3}Exactly 3 a
a{2,4}2 to 4 a
a{3,}3 or more a
a*?Non-greedy (lazy)

Anchors

^Start of string / line
$End of string / line
\A \ZStart / end of string (not multiline)

Groups & alternation

(abc)Capture group
(?:abc)Non-capturing group
(?<name>abc)Named capture
a|ba OR b
\1Backreference to group 1
(?=abc)Positive lookahead
(?!abc)Negative lookahead
(?<=abc)Positive lookbehind
(?<!abc)Negative lookbehind

Flags

gGlobal — find all matches
iCase-insensitive
mMultiline — ^ and $ match line breaks
s. matches newlines (dotall)
uUnicode
ySticky — match at lastIndex only

Common patterns

^[\w.+-]+@[\w-]+\.[\w.-]+$Email (basic)
^https?://[^\s]+$URL
^\d{4}-\d{2}-\d{2}$Date YYYY-MM-DD
^\+?[1-9]\d{1,14}$Phone (E.164)
\b[0-9a-f]{6,8}\bHex color (6 or 8)
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$UUID

How to use Regex cheat sheet

  1. Open the Regex cheat sheet page and paste, type, or generate the regex input you want to work with.
  2. Pick the options you need so the tool can searchable reference for JavaScript regular expressions
  3. Copy the regexp result with one click and use it in your next step — terminal, editor, ticket, or anywhere else you need it.

Common uses

  • Reach for Regex cheat sheet when you need to searchable reference for JavaScript regular expressions during debugging, code review, or content preparation.
  • Skip installing a desktop regex app — open this web utility on a shared machine, an iPad, or a colleague's laptop and it just works.
  • Bookmark or share the page when you and your team keep coming back to the same regex, regexp, cheat, and sheet workflow.

FAQ

What does the Regex cheat sheet tool do?

Searchable reference for JavaScript regular expressions. It is part of the web utilities on often.cloud and is designed for quick regex, regexp, and cheat workflows.

Who is the Regex cheat sheet tool for?

The Regex cheat sheet tool is useful for developers, operators, support teams, and anyone who needs a fast browser-based way to work with regex, regexp, and cheat.

Why use the Regex cheat sheet tool on often.cloud?

often.cloud keeps this workflow focused on speed and convenience, with a dedicated page, direct linking, and a lightweight browser experience for regex cheat sheet.

Related tools

Helpers for the browser platform.