Monu Tools

Regex Tester

Test a regular expression against your text in real time. See every match highlighted, with capture groups and flags. Runs entirely in your browser.

How to use the Regex Tester

  1. 01

    Type your regular expression in the pattern field.

  2. 02

    Toggle the flags (g, i, m, s, u) you need.

  3. 03

    Enter the test string and see matches highlighted with their groups.

Frequently asked questions

Which regex flavour is used?

It uses your browser's JavaScript (ECMAScript) regular-expression engine, so the syntax matches what you would use in JavaScript and TypeScript.

What do the flags mean?

g finds all matches, i is case-insensitive, m makes ^ and $ match line starts and ends, s lets the dot match newlines, and u enables full unicode mode.

Are capture groups shown?

Yes. Each match lists its numbered groups, and named groups are captured too. Matches are highlighted in the test string so you can see exactly what was matched.

Is my text uploaded?

No. The pattern runs against your text entirely in your browser; nothing you type is sent anywhere.

About this tool

This regex tester runs a regular expression against your text and highlights every match as you type, using your browser's JavaScript regex engine. It lists matches with their position and capture groups.

It is built for developers writing and debugging patterns for validation, search and parsing. Everything runs locally, so your patterns and data stay private.

Related tools

We use essential cookies to run the site. With your consent we also load Google AdSense, which sets advertising cookies. See our privacy policy.