/
/g
Sample Patterns:
| # | Match | Index | Length | Capture Groups |
|---|---|---|---|---|
| Enter pattern and text to see match details | ||||
ADVERTISEMENT
Tool Result Banner
Google AdSense Slot ID: 3456789012 • Responsive
How to Use Regex Tester
- Enter your regular expression pattern in the regex input field.
- Toggle your desired flags (`g` global, `i` case-insensitive, `m` multiline, `s` dotAll, `u` unicode).
- Paste your test string in the text editor below.
- View matched text highlighted in real-time and inspect matched groups in the results table.
Key Features & Advantages
- Live match highlighting with distinct colors for capture groups
- Full regex flag toggles (`g`, `i`, `m`, `s`, `u`)
- Detailed match details table (Index, Length, Groups $1, $2...)
- 1-Click Sample Regex presets (Email, URL, IPv4, Phone, Hex Color, Date)
- Built-in Regex Syntax Quick Reference Cheat Sheet
Frequently Asked Questions
It uses your browser native V8/SpiderMonkey ECMAScript RegExp engine with full support for modern regex features, lookaheads, lookbehinds, and Unicode properties.