Regex Tester

Test regular expressions against sample text and inspect every match and group.

This tool runs entirely in your browser. The file you choose is never uploaded to a server. Free, with no account required.

Input
Pattern and sample text
Output
Matches and captured groups
Category
Developer Tools
Status
Available now
Price
Free — no subscription, no account

How to use Regex Tester

  1. Type your pattern and tick the flags you need (g, i, m, s, u, y).
  2. Paste the sample text to test against — matches are highlighted as you type.
  3. Open the match list to see each match, its index and its captured groups.

Frequently asked questions

Which regex engine does this use?

It uses your browser’s native JavaScript RegExp engine, so the results are exactly what JavaScript will do at runtime — including the same syntax and the same limits.

Why does my pattern stop matching after a while?

To keep the page responsive, matching stops after 5,000 matches. If your pattern can match an empty string it is also capped so the loop cannot run forever.

Is my pattern or text sent anywhere?

No. The Regex Tester runs entirely in your browser, so your pattern and sample text never leave your device.

Is the Regex Tester free?

Yes. It is completely free, needs no account, and has no usage limit.

Related tools