Regex Tester & Cheatsheet
Test regular expressions in real-time with syntax error highlighting, regex flags, substitution replace, capture groups, and common pattern presets.
About Regex Tester & Cheatsheet
Interactive regex debugger featuring instant match highlighting, capture group extraction, replace simulation, explanation cheatsheet, and ready-to-use presets (Chinese 11-digit mobile, 18-digit citizen ID, CJK characters, email, URL, IPv4/IPv6, unified credit code).
1How to Use Regex Tester & Cheatsheet in 3 Simple Steps
100% In-Browser · No Installation RequiredEnter Pattern & Flags
Type your regular expression and toggle flags (g, i, m, s, u).
Input Test String
Paste text or click a preset from the built-in library.
View Matches & Groups
Review highlighted matches, capture groups, and replace simulation.
2Why Choose Client-Side Processing?
Chinese Common Regex Presets
1-click presets for Chinese mobile phones, 18-digit ID cards, CJK characters, and credit codes.
Capture Groups Inspector
Detailed table of named and numbered capture groups for each match.
Live Replace Sandbox
Simulate String.prototype.replace with $1, $2 group backreferences.
3Common Real-World Use Cases
Form Validation Rules
Verify user registration and authentication regex before shipping.
Data Scraping & Extraction
Test patterns to scrape emails, phone numbers, and URLs from HTML.
Text Cleanup & Replacement
Format raw data logs and strip unwanted characters.
Related Tools
Complementary zero-upload browser tools for your workflow
Favicon & App Icon Generator
Generate multi-size browser favicons, Apple Touch icons, Android PWA icons, and .ico binary packages.
JWT Token Decoder & Inspector
Decode and inspect JSON Web Tokens (JWT) safely in your browser. Check token expiration without leaks.
Static QR Code Generator (URL, Wi-Fi & vCard)
Create permanent static QR codes locally. 100% free with no expiration, no sign-up, and zero tracking redirects. Supports URLs, Wi-Fi, vCard, custom logos, and SVG export.