Regex Tester — Test Regular Expressions with Live Matches
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
- Type your regular expression and tick the flags you need.
- Paste sample text into the Test box — matches highlight live.
- 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
JSON Formatter
Paste JSON and this tool tells you instantly whether it is valid — and if not, exactly where it breaks, with the error position.
Text Difference Checker
Paste two versions of a text and this tool highlights exactly what changed: lines only in the first text, lines only in the…
Base64 Encoder / Decoder
Base64 represents binary data using 64 safe ASCII characters, which is how emails attach files, JSON carries binary blobs and…
URL Encoder / Decoder
URLs may only contain a limited set of ASCII characters, so spaces, accents and symbols are written as %XX percent-escapes.
JSON ⇄ YAML Converter
JSON ⇄ YAML converts between the two most common configuration formats: paste JSON to get clean, commented-style YAML for…