How to use the Regex Tester
- Enter a regex pattern.
- Enter sample text.
- Choose flags and run the test.
- Review matches and groups.
Frequently Asked Questions
Which regex engine is used?
Your browser JavaScript RegExp engine.
Is text uploaded?
No.
Testing patterns safely
Type a pattern, paste sample text and choose flags such as g for all matches and i to ignore case. Matches and capture groups are listed so you can see exactly what the pattern caught.
This tool uses the JavaScript regular expression engine, so syntax from other languages, such as lookbehind in some older engines, may behave differently. Test with edge cases before using a pattern in production.