⌨️ Developer Tools Free No sign-up Works offline once loaded

Regex Tester

Test a regular expression against sample text with live highlighting, flags and match groups.

Runs entirely in your browser. Nothing is uploaded, stored or sent anywhere.

The formula behind it

Compiles the pattern with the given flags and reports every match, its position and its capture groups.

The working is shown so you can check it. If a result looks wrong, this is the first place to look.

How to use it

  1. Open the Regex Tester above. It is ready to use — nothing to install.
  2. Enter pattern, flags, test text.
  3. Press Calculate.
  4. Copy the result with one click, or download it where the tool produces a file.
  5. Change any value and the result updates immediately — there is no limit on how many times you run it.

About the Regex Tester

Test a regular expression against sample text with live highlighting, flags and match groups.

This is one of 107 free tools on RandomGen Tools. It sits in the developer tools section, alongside json formatter. Everything runs in your browser, so there is nothing to install and no limit on how often you use it.

Questions people ask

JavaScript, because it runs in your browser. Most syntax is shared with PCRE, but lookbehind support differs.
Nested quantifiers such as (a+)+ cause catastrophic backtracking. Rewrite to avoid nested repetition.
It makes the engine find all matches instead of stopping at the first.

Related tools