Your files stay here

Every tool runs inside this browser tab. Files you open are read and saved on this device and are never uploaded.

There is no account and no tracking. Recent files and saved tools are kept in this browser until you clear them.

Developer

Regex Tester

Test a JavaScript regular expression against your text and see every match, group and replacement.

Loading the tool…

Runs in this browser. Nothing is uploaded.

How to use Regex Tester

  1. Paste or type into the box.
  2. Change the settings beside your file if you need to.
  3. The result updates as you type. Copy it when you are done.

Questions

Which regex flavor is this?
JavaScript's, as your browser runs it. Most of it matches PCRE and Python, but lookbehind, named groups and \p{…} classes follow the JavaScript rules.
Why are all matches listed when All matches is off?
The list always shows every match so you can see them. The replacement follows your flags, so with All matches off only the first match is replaced.
What happens with a slow pattern?
It runs in the background and is stopped after two seconds, so the page never freezes.
Is Regex Tester free?
Yes. There is no account, no trial and no limit on how often you use it.
Is what I type sent anywhere?
No. Everything is worked out in your browser; nothing you enter leaves this page.
Does it work offline?
Once the page has loaded, most tools keep working without a connection.

More developer tools