Regex Tester
Find matches with JavaScript regular expressions.
When to use Regex Tester
Try a short matching case and a non-matching case before using the expression in an application.
How to use Regex Tester
- Prepare the input for Regex Tester: A JavaScript regular expression, flags and test text. Paste the text or use Load example.
- Select Test.
- Check the output: Matching results for the test text. Copy only the result you intend to use.
A practical example
Pattern \d+ on x12 y34 → matches 12 and 34
Limitations and common mistakes
JavaScript syntax is used; other languages may differ. Excessively expensive patterns can time out.
Questions about Regex Tester
What should I enter in Regex Tester?
A JavaScript regular expression, flags and test text.
What does Regex Tester return?
Matching results for the test text.
What should I check before using the result?
JavaScript syntax is used; other languages may differ. Excessively expensive patterns can time out.
Supported input and output
A JavaScript regular expression, flags and test text.
Matching results for the test text.
