Regex Tester
Test regular expressions with live matches, named capture groups, and replace mode.
Free & unlimited
Pattern
//g
Flags
View
Test string
2 matches
All processing happens in your browser. No data is sent to any server.
About this tool
- 1
Enter a regex pattern
Type your regular expression in the pattern field.
- 2
Add test text
Enter the text you want to test against.
- 3
See matches
Matching portions are highlighted in real-time.
- 4
Check groups
Named and numbered capture groups are shown separately.
- Use the /g flag for global matching (find all occurrences).
- Use the /i flag for case-insensitive matching.
- Named groups (?<name>...) make complex patterns more readable.
- Test with multiple inputs to make sure your regex handles edge cases.
- Live matching
- Flag toggles
- Capture groups
- Match highlighting
- Match count
- Build and debug regex for form validation.
- Test patterns for log file parsing.
- Create search patterns for find-and-replace operations.
- Learn regex by experimenting with live feedback.