AllKit

Regex Tester — Test Regular Expressions with Live Matches

100% freeRuns in your browserNo sign-up
// g

About the Regex Tester

Regex Tester gives you instant feedback while you build a pattern: every match is highlighted in your test text as you type, the match list shows each capture group and position, and the replace field previews the substituted result with $1 group references.

All five JavaScript flags (g, i, m, s, u) are one checkbox away, and quick-insert buttons drop in battle-tested patterns for emails, URLs, IPv4 addresses, dates, hex colors and HTML tags. Everything runs locally — nothing is uploaded.

How to use the Regex Tester

  1. Type your regular expression and tick the flags you need.
  2. Paste sample text into the Test box — matches highlight live.
  3. Expand “Match details” to inspect groups and positions, or fill in a replacement to preview the substituted text.

Frequently asked questions

Which regex flavor does this tester use?

JavaScript (ECMAScript) regular expressions — the same engine your browser and Node.js use. Patterns relying on PCRE features like lookbehind work in modern browsers but may fail in old ones.

What does each flag do?

g — find all matches, not just the first; i — ignore case; m — ^ and $ match line boundaries; s — dot also matches newlines; u — full Unicode handling (needed for emoji and non-Latin scripts).

Why does my pattern show zero matches here but works elsewhere?

Most often a missing g flag (only the first match counts) or escaping: in a JS string literal you write \\d, but here — as in a regex literal — a single \d is correct.

Is my text sent anywhere?

No. Matching runs entirely in your browser; the text never leaves your computer.

Related tools