Developer Tool

Regex Tester

Test a JavaScript regular expression and inspect matching results locally.

How the regex tester works

Step 1

Enter a pattern

Type a regular expression and any flags, such as g for global or i for case-insensitive.

Step 2

Add test text

Paste the text you want to test the pattern against.

Step 3

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.