Live Match Highlighting
Every match lights up in your text the moment you change the pattern, so you see results instantly.
Test a regular expression against your text in the browser. See every match highlighted, inspect capture groups, toggle flags, and try replacements live. Free, no signup, nothing uploaded.
Type your regular expression and toggle the flags you need, like global, ignore case, or multiline.
Drop in the text you want to match. Every match is highlighted as you type, with a running count.
Open the Matches tab to see capture groups for each match, or switch to Replace to try a substitution with $1 style references.
Regular expressions are easy to write and hard to get right. A pattern that looks correct can quietly match too much, too little, or nothing at all, and staring at the raw syntax rarely tells you why. The fastest way to fix one is to watch it run against real text.
This tester does that. You type a pattern, paste some text, and every match is highlighted as you go. Open a match to see its capture groups, numbered and named, so you can confirm the parts you actually care about are being pulled out correctly.
It uses the same regular expression engine your JavaScript runs, with all the flags you would use in code, so what you see here is what you get in the browser. Switch to replace to preview a substitution, lean on the cheatsheet when you forget a token, and because it all runs locally, you can test against private data without it leaving your machine.
Every match lights up in your text the moment you change the pattern, so you see results instantly.
Each match lists its numbered and named groups, so you can confirm exactly what was captured.
Toggle global, ignore case, multiline, dotall, unicode, and sticky to match how your code runs.
Try a replacement with $1 and named group references and see the result update live.
A built-in cheatsheet of common tokens is one click away when you forget the syntax.
Your pattern and text are tested on your device. Nothing is uploaded, logged, or stored.
More Developer tools you might find useful.
Common questions about testing regular expressions.