text
Regex Tester
Test JavaScript regular expressions against text and review matches, positions, and capture groups locally.
Local processing. Regex testing happens locally in this browser tab. Patterns and test text are not uploaded, logged, or saved.
//g
JavaScript regular expressions are tested locally in this browser tab.
Flags
Use the global flag to list every match. Without it, only the first match is shown.
How to use Test Regex
- 1Enter a regular expression pattern.
- 2Choose flags such as global, ignore case, or multiline.
- 3Paste text to test against.
- 4Review highlighted matches, positions, and capture groups.
Frequently asked questions
Does the regex tester upload my text?
No. The regular expression and test text are evaluated locally in your browser tab.
Which regular expression syntax is supported?
The first release uses JavaScript regular expression syntax, which matches the behavior of modern browsers.
Why do I only see one match?
Enable the global flag, g, to list every match. Without it, JavaScript returns only the first match.
Related tools
Keep working with other private browser-based utilities.