Online Regex Tester & Match Highlighter
Test Regular Expressions in real time with live highlighted matches, flags (g, i, m), capture groups, and common presets.
Presets:
Matches List
Quick Regex Cheat Sheet
| Token | Meaning | Example |
|---|---|---|
\d / \w / \s | Digit / Word char / Whitespace | \d{4} matches 2026 |
+ / * / ? | 1 or more / 0 or more / Optional | colou?r matches color & colour |
^ / $ | Start of string / End of string | ^Hello matches leading Hello |
[a-z] / (abc) | Character class / Capture group | (\d+)-(\d+) captures two numbers |
💡 Did You Know?
- Regular Expressions were formalized by mathematician Stephen Cole Kleene in the 1950s.
- Always escape literal dots (
\.) when matching domains or IPs—an unescaped dot matches any character. - Adding the
iflag makes your pattern case-insensitive automatically.
🔗 Related Developer Tools
- JSON Formatter & Validator
- CSV to JSON Converter
- JSON to CSV Converter
- Markdown to HTML
- Case Converter
📖 Read Next
Frequently Asked Questions
Which Regex engine does this tester use?
It uses your browser's native ECMAScript (JavaScript) RegExp engine for instant, accurate matching.
What do the g, i, and m flags mean?
g finds all matches (global), i ignores uppercase/lowercase, and m makes ^ and $ match start/end of each line.
Is my test text private?
Yes, 100% client-side—nothing is sent to any server.
Can I test email and URL patterns quickly?
Yes, click any of the quick preset buttons (Email, URL, Date, Numbers) to load tested patterns immediately.
Why did my pattern show an invalid regex error?
Check for unclosed parentheses, brackets, or unescaped special characters like /, [, or ?.
Does it show capture groups?
Yes, every match and its capture groups are listed in the Matches List below the highlighter.
Is this Regex tester free?
Yes, completely free with zero ads clutter or signup.