ESC

to navigate   Enter to open   ESC to close

Regex Cheat Sheet

Comprehensive regular expression reference with live tester

Anchors
^
Start of string / line
$
End of string / line
\\b
Word boundary
\\B
Non-word boundary
\\A
Start of string (absolute)
\\Z
End of string (absolute)
Character Classes
.
Any character except newline
\\w
Word character [a-zA-Z0-9_]
\\W
Non-word character
\\d
Digit [0-9]
\\D
Non-digit
\\s
Whitespace (space, tab, newline)
\\S
Non-whitespace
[abc]
Match a, b, or c
[^abc]
Not a, b, or c
[a-z]
Lowercase letter range
[A-Z]
Uppercase letter range
[0-9]
Digit range
Quantifiers
*
Zero or more (greedy)
+
One or more (greedy)
?
Zero or one (optional)
{n}
Exactly n times
{n,}
n or more times
{n,m}
Between n and m times
*?
Zero or more (lazy)
+?
One or more (lazy)
??
Zero or one (lazy)
Groups & References
(abc)
Capturing group
(?:abc)
Non-capturing group
(?<name>abc)
Named capturing group
\\1
Backreference to group 1
a|b
Alternation (a or b)
Lookarounds
(?=abc)
Positive lookahead
(?!abc)
Negative lookahead
(?<=abc)
Positive lookbehind
(?<!abc)
Negative lookbehind
Flags / Modifiers
g
Global - match all occurrences
i
Case insensitive
m
Multiline (^ and $ per line)
s
Single line (dot matches newline)
u
Unicode support
y
Sticky (match from lastIndex)
Common Patterns
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Email address
https?:\/\/[^\s/$.?#].[^\s]*
URL (http/https)
\+?[\d\s\-\(\)]{7,15}
Phone number (international)
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
IPv4 address
#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b
HEX color code
\d{4}-\d{2}-\d{2}
Date (YYYY-MM-DD)
<([a-z]+)([^<]*?)(?:>(.*?)<\/\1>|\/>)
HTML tag
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$
Strong password (8+ chars, mixed)
^[a-zA-Z0-9_]{3,20}$
Username (3-20 alphanumeric)
^\s+|\s+$
Leading/trailing whitespace
Try It - Live Regex Tester
/ /
0 matches
Enter a pattern and test string above...
Processing...
0s

Free Regex Cheat Sheet Online - Quick reference for regular expression syntax

Regex Cheat Sheet is a powerful free online tool that provides a comprehensive regex syntax reference with examples. Whether you are a student, professional, or everyday user, this tool helps you get results instantly without any signup or download.

What Is Free Regex Cheat Sheet Online | AllToolHub?

The Regex Cheat Sheet is a free online tool available on AllToolHub that provides a comprehensive regex syntax reference with examples. It runs directly in your browser, ensuring your data stays private and secure. No registration, no downloads - just open and use.

How Does It Work?

Browse regex patterns by category or search for specific syntax. Everything is processed quickly, giving you instant results. The tool is designed to be simple and intuitive, so anyone can use it without technical knowledge.

How to Use Free Regex Cheat Sheet Online | AllToolHub

  1. Browse regex patterns by category or search for specific syntax

Key Features

  • Categorized patterns
  • Examples
  • Common recipes
  • Quick search

Why Use Free Regex Cheat Sheet Online | AllToolHub?

  • Learn regex quickly
  • Reference while coding
  • Find patterns fast

Frequently Asked Questions

The Regex Cheat Sheet is a free online tool on AllToolHub that provides a comprehensive regex syntax reference with examples. It is completely free to use with no signup required.

Yes, the Regex Cheat Sheet is 100% free. There are no hidden charges, no signup required, and no usage limits. Just open and start using it.

Browse regex patterns by category or search for specific syntax.

Absolutely. Most processing happens directly in your browser. We do not store, share, or sell your data. Your privacy is our priority.

Yes, the Regex Cheat Sheet is fully responsive and works perfectly on smartphones, tablets, and desktop computers. No app download needed.

Rate This Tool

Reviews