Regex Tester & Debugger - Free Online RegEx Tool
Test and debug regular expressions in real time. Free online RegEx tester with live highlighting, pattern explanation, capture groups, replace, and 60+ ready-made regexes.
1. Your regular expression
2. Flags (click to turn on or off)
3. Choose a tool
Matches
All matches and groups
Replace
Use $1, $2 for groups, $<name> for named groups, $& for the whole match and $$ for a dollar sign.
Pattern with syntax colors
Flags in effect
Token by token (indentation shows groups)
| Pattern | Explanation |
|---|
My saved patterns
Ready-made patterns
Build a pattern from rules
Generated patterns follow the rules you choose and were checked against typical examples. They do not cover every edge case, so always test them with your own data.
Text tools (use the pattern and the test text above)
Result will appear here... Test cases
Add texts that SHOULD match and texts that should NOT. Results update automatically for the pattern above.
| Test input | Expected | Actual | Result | Remove |
|---|
Regex cheat sheet and keyboard shortcuts
Everything runs in your browser. Your patterns and text are never uploaded. The test runs in a background worker with a time limit, so a slow pattern is stopped instead of freezing the page.