Regex Cheat Sheet

Regex Cheat Sheet

Free

Free online regex cheat sheet. Browse common regular expression syntax by character classes, anchors, quantifiers, groups, lookaround assertions, flags, escaping and practical examples. Supports search, one-click copy and live testing.

工具加载中请稍候片刻

About Regex Cheat Sheet

Free online regex cheat sheet. Browse common regular expression syntax by character classes, anchors, quantifiers, groups, lookaround assertions, flags, escaping and practical examples. Supports search, one-click copy and live testing.

regexregular expressionscheat sheetdeveloper tools

User Guide

Key Features
  • Free online regex cheat sheet — works right in your browser, no installation needed
  • Syntax organized into nine categories: character classes, character sets, anchors, quantifiers, groups & backreferences, lookaround assertions, flags, escaping, and common examples, with keyword search to quickly find what you need
  • One-click regex copying, live match testing, and ready-to-use examples for email, URL, IP, date, and more — ideal for everyday development reference
How to Use
  1. Open the tool page — no download or installation required
  2. Type a regex syntax or use-case keyword (e.g., email, digit, anchor) in the search box, or click a category button to filter
  3. Click the copy icon on a card to copy the regex, or click the Test icon to open the tester
  4. In the tester, adjust the pattern and flags (g/i/m/s/u/y), enter a test string, and see matches update in real time; use Copy to grab the full /pattern/flags
Important Notes
  • This tool is completely free and requires no registration or login
  • Everything runs locally in your browser — your data is never uploaded
  • Regex syntax support varies slightly across languages and engines (e.g., JavaScript vs PCRE); verify against your target environment before use

Frequently Asked Questions

What is Regex Cheat Sheet?

Free online regex cheat sheet. Browse common regular expression syntax by character classes, anchors, quantifiers, groups, lookaround assertions, flags, escaping and practical examples. Supports search, one-click copy and live testing.

How do I use Regex Cheat Sheet?

Open the tool page — no download or installation required Type a regex syntax or use-case keyword (e.g., email, digit, anchor) in the search box, or click a category button to filter Click the copy icon on a card to copy the regex, or click the Test icon to open the tester In the tester, adjust the pattern and flags (g/i/m/s/u/y), enter a test string, and see matches update in real time; use Copy to grab the full /pattern/flags

What should I know before using Regex Cheat Sheet?

This tool is completely free and requires no registration or login Everything runs locally in your browser — your data is never uploaded Regex syntax support varies slightly across languages and engines (e.g., JavaScript vs PCRE); verify against your target environment before use

Is Regex Cheat Sheet free to use?

Yes, Regex Cheat Sheet is completely free. No download or installation required — it runs right in your browser.