Match positions
For A12 B34 with \d+, results show 1: 12 and 5: 34.
REGEX TESTER
Enter a pattern, flags, and test text to inspect every match and its position locally in your browser.
Your result will appear here.
WHY THIS TOOL
For A12 B34 with \d+, results show 1: 12 and 5: 34.
Enter flags such as i; the tester searches all matches even without g.
A pattern that runs too long is stopped in a separate worker.
HOW TO USE
Add your input, run the tool, then check the result.
Enter a pattern and any flags.
Paste test text and select Test regex.
Review each match and its starting character position.
FAQ
No. The tester searches all matches even if g is omitted.
They are zero-based JavaScript string indexes.
The test is stopped and a timeout message appears.