Regex Tester
Type a pattern, paste sample text, see every match highlighted live.
No pattern yet
Writing a regular expression that actually matches what you intend is easier with live feedback — test your pattern against real sample text and see matches highlighted instantly as you type.
How it works
- Type a patternEnter your regular expression and any flags you need.
- Paste sample textMatches highlight live as you type in either field.
- Check the match countSee exactly how many matches your pattern finds, and where.
Good to know
- Uses JavaScript's native RegExp engine, the same one your browser's own code runs
- Handles zero-length matches safely, so a pattern like an empty lookahead won't freeze the page
- Caps at 5,000 highlighted matches on very large inputs, to keep the page responsive
- Matched text is escaped before display, so pasting HTML or script-like content is safe to test