Regex tester
Test a regular expression against your text and see every match and capture group.
🔒 Everything runs in your browser. Nothing you choose or type is uploaded. How to verify
How to use it
- Type your pattern without the slashes.
- Add flags such as g or i, then paste the test text.
- Read the matches, which update as you type.
Handy for
Debugging validation patterns and extracting data from text.
Good to know
Without the g flag only the first match is shown. Patterns with heavy backtracking can slow your tab, so test with short text first.
Privacy: where the work happens
Everything you enter or choose is processed by JavaScript in your browser and never sent anywhere. Only the page code, and any library this tool needs, is downloaded from cdnjs or jsDelivr.
Questions
Which regex flavor is used?
JavaScript, the same as in browsers and Node.js.
Why did it stop at 500 matches?
Very long match lists are capped to keep your browser responsive.