Regex Tester
Test JavaScript regular expressions and inspect matches.
Preparing your tool…
How do I use this?
- Enter a pattern, flags and sample text, then click Test.
- Review the result, then copy or download it as needed.
About this tool
Test JavaScript regular expressions and inspect matches.
Enter a pattern, flags and sample text, then click Test.
Matching runs in a worker and stops after two seconds to prevent freezing.
Common questions
What should I know about regex tester?
Matching runs in a worker and stops after two seconds to prevent freezing.
Is my data uploaded?
No. Input and files stay in your browser. Save any results before leaving the page.
Tool content and files are processed in this browser. Save results before leaving; comment text is submitted to the server for review.
Tool discussion
0 user comments · 4 official tips
Nested repetition can make matching expensive. If testing is stopped, simplify repeated structures or shorten the test text.
Distinguish string escaping from regex escaping when copying code. Double backslashes in source strings may not belong in the pattern field.
Results include matched text, positions and capture groups. Start with short matching and non-matching examples to check boundaries.
Enter the pattern body and set flags separately. Use i for case-insensitive matching and m for multiline anchors.