Regex Tester
Enter a regular expression and sample text. We run the regex (JavaScript flavor) and show whether it matches and what groups were captured. Invalid regex shows an error message.
Test regex
Enter regex and text, then click Test.
How it works
We build a RegExp from your pattern (with g if Global is checked) and run exec or match. Capturing groups are listed. No replacement; use your editor or script for that.
When to use it
Use to quickly verify a regex against sample strings before putting it in code.
Frequently asked questions
- Which flavor? JavaScript (ECMAScript). Some PCRE features are not supported.