Regex Tester
Write a pattern, paste sample text, and see what matches. Testing stays in the browser, so logs and sample records are not uploaded.
Highlighted matches
Match list
- No matches
How to use it
- Enter a regular expression.
- Paste the text you want to test.
- Check the highlighted matches and groups.
Useful for
- Try a capture group
- See why a pattern misses
- Test a pattern before adding it to code
Related tools
Questions about Regex Tester & Explainer
Which regex engine is used? +
Your browser’s native JavaScript RegExp engine, including common flags like g, i, m, s, and u.