HomeRegexRegex Cheatsheet
🔍

Regex Cheatsheet

Quick reference for regular expression patterns

100% Private: All processing happens in your browser. No data is sent to any server.

Character Classes

.Any character except newline
\dDigit (0-9)
\DNot a digit
\wWord character (a-z, A-Z, 0-9, _)
\WNot a word character
\sWhitespace
\SNot whitespace

Anchors

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

Quantifiers

*0 or more
+1 or more
?0 or 1
{n}Exactly n times
{n,}n or more times
{n,m}Between n and m times

Groups & Ranges

[abc]Any of a, b, or c
[^abc]Not a, b, or c
[a-z]Character between a and z
(abc)Capture group
(?:abc)Non-capturing group
a|ba or b

Flags

gGlobal - find all matches
iCase insensitive
mMultiline - ^ and $ match line boundaries
sDotall - . matches newline

Common Patterns

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Email address
^https?://[^\s]+$URL
^\d{3}-\d{3}-\d{4}$Phone number (123-456-7890)
^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$Hex color
^(?=.*[A-Z])(?=.*[a-z])(?=.*\d).{8,}$Strong password

What is Regex Cheatsheet?

Regex Cheatsheet is essential for developers working with regular expressions. Test patterns, match text, and learn regex syntax in a user-friendly interface with instant feedback.

How to Use

  1. Enter or paste your data into the Regex Cheatsheet input field
  2. The tool processes your input automatically in real-time
  3. View the results instantly without any delays
  4. Copy the output with a single click
  5. Use the result in your project or workflow

Common Use Cases

  • Testing regex patterns
  • Debugging pattern matching
  • Learning regex syntax
  • Validating input formats
  • Text extraction and parsing

Why Use Our Regex Cheatsheet?

✅ 100% Client-Side Processing

All processing happens in your browser. Your data never leaves your device.

🚀 Fast & Instant

No server delays. Process your data instantly without waiting.

🔒 Completely Secure

No data sent to servers means no risk of data breaches or leaks.

💰 Free Forever

No registration, no limits, no hidden costs. Use as much as you need.