Regex Tester
Test a JavaScript regular expression and inspect matching results locally.
How the regex tester works
Enter a pattern
Type a regular expression and any flags, such as g for global or i for case-insensitive.
Add test text
Paste the text you want to test the pattern against.
Run the test
The tool lists every match found, along with a count, so you can confirm the pattern behaves as expected.
Frequently asked questions
Which regex flavor is used?
The tester uses your browser's native JavaScript regular expression engine, so patterns behave exactly as they would in JavaScript code.
What happens if my pattern is invalid?
The tool shows an "Invalid regular expression or flags" message rather than a match list, so you can adjust the pattern.
Is my test text sent anywhere?
No. Matching runs locally in your browser.