Regex Tester
Write a pattern and see matches highlighted against your sample text, live.
Tweak the pattern and flags; matches, groups and substitutions update as you type. Great for log parsing, validation and search-and-replace.
Regex Tester
Live matching
Every match and capture group highlights instantly as you edit the pattern.
Flags supported
Toggle global, case-insensitive, multiline and other common flags.
No round-trips
Matching runs in your browser — large sample text never leaves the page.
What regex flavor does this use?
It uses the JavaScript (ECMAScript) regex engine in your browser, so the syntax matches what you'd use in JS, Node and many web tools.
How do capture groups work?
Parentheses create groups whose matched text you can reference. Named groups (?<name>…) make patterns more readable.
Why is my pattern matching too much?
Quantifiers like * and + are greedy by default. Add ? (e.g. .*?) to make them lazy and match the shortest span.
Related tools
- JSON Formatter — clean up data you extract with regex.
- Text Encoding Converter — normalize input before matching.
🔐 Private by design: every tool runs in your browser. DNS lookups go straight to Cloudflare's DoH resolver (1.1.1.1); nothing else is sent to any server, and nothing is logged.