Regex Tester

Live matching with highlights, capture groups and replace.

Free online regex tester by AIML Digital. It runs 100% in your browser: no sign-up, no limits, and nothing you enter is sent to a server.

Formula

How it works

  1. Compile with the JavaScript (ECMAScript) regex engine.
  2. Highlight each match, list numbered and named capture groups, and preview replace() with $1, $<name> references.

Frequently asked questions

Is the Regex Tester free?

Yes. The Regex Tester by AIML Digital is completely free, with no sign-up, no limits and no watermark.

Is my data sent anywhere?

No. The Regex Tester runs entirely in your web browser using JavaScript. What you type stays on your device.

What formula does the Regex Tester use?

Matches = input.matchAll(new RegExp(pattern, flags + "g")).

How does the Regex Tester work?

Compile with the JavaScript (ECMAScript) regex engine. Highlight each match, list numbered and named capture groups, and preview replace() with $1, $<name> references.

Does the Regex Tester work on mobile?

Yes. It works in any modern browser on phone, tablet or desktop, and keeps working offline once loaded (except tools that load a helper library the first time).

More Developer tools