often.cloud
source
← all tools

Regex cheat sheet

Web

Searchable reference for JavaScript regular expressions.

What this tool helps with

Searchable reference for JavaScript regular expressions. This web tool on often.cloud is built for quick, browser-based workflows, so you can move from input to result without switching apps.

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. Paste, type, or generate the value you want to work with in the Regex cheat sheet tool.
  2. Adjust the available options to searchable reference for JavaScript regular expressions.
  3. Copy the result immediately and continue with your regex and regexp workflow.

Common uses

  • Regex cheat sheet is useful when you need to searchable reference for JavaScript regular expressions during development, debugging, or content preparation.
  • Use this web utility for fast regex, regexp, and cheat work without installing a separate desktop app.
  • Open the page directly when a teammate needs the same regex cheat sheet workflow or a repeatable browser-based utility.

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.