DesignerPK tools Kit logotools
RGX-05

Regex Cheatsheet

A searchable quick reference for regex syntax.

Runs in your browserNothing sent to a server

Basics

.Any character except newline
\dAny digit (0-9)
\DAny non-digit
\wWord character (letter, digit, underscore)
\WNon-word character
\sWhitespace character
\SNon-whitespace character

Anchors

^Start of string or line
$End of string or line
\bWord boundary
\BNot a word boundary

Quantifiers

*Zero or more of the previous
+One or more of the previous
?Zero or one of the previous (optional)
{n}Exactly n times
{n,}n or more times
{n,m}Between n and m times
*?Zero or more, non-greedy (as few as possible)

Groups

(...)Capture group
(?:...)Non-capturing group
(?<name>...)Named capture group
(?=...)Positive lookahead
(?!...)Negative lookahead
(?<=...)Positive lookbehind
(?<!...)Negative lookbehind

Character sets

[abc]Any one of a, b, or c
[^abc]Any character except a, b, or c
[a-z]Any character from a to z

Alternation

a|bEither a or b

Flags

gGlobal — find all matches, not just the first
iCase-insensitive matching
mMultiline — ^ and $ match line boundaries
sDotall — . also matches newlines

What is this tool?

Regex Cheatsheet is a searchable quick reference for common regular expression syntax, tokens, character classes, quantifiers, groups, anchors, and other commonly used regex constructs.

How does it work?

Search the cheatsheet by regex symbol, keyword, or concept to quickly find the syntax you need. The reference is available directly in your browser so you can look up common patterns without searching through lengthy documentation.

Key features

  • Search common regex syntax quickly
  • Reference regex tokens and metacharacters
  • Look up character classes and quantifiers
  • Review anchors, groups, and common constructs
  • Useful for beginners and experienced developers
  • Quick browser-based regex reference

How to use

  1. Open the Regex Cheatsheet.
  2. Search for a regex symbol, keyword, or concept.
  3. Review the matching syntax and explanation.
  4. Use the reference while writing or debugging a regex pattern.
  5. Return to the cheatsheet whenever you need a quick syntax reminder.

FAQ

What is a regex cheatsheet useful for?

A regex cheatsheet provides a quick reference for common regular expression syntax so you can look up patterns without searching through full documentation.

Can beginners use this regex reference?

Yes — it can help beginners learn common regex syntax while also serving as a quick reference for experienced developers.

What regex syntax can I look up?

The reference covers common constructs such as character classes, quantifiers, anchors, groups, and other frequently used regex syntax.

Does Regex Cheatsheet require an internet connection after loading?

The reference is designed to work as a browser-based tool, but availability of its resources can depend on how the website is loaded and served.

More in Regex Tools