Real Local Tools

Regex Tester

Runs locally

Test regular expressions with live highlighting, match groups, replacement and a pattern cheat sheet.

//g
Flags

Matches
Common patterns

Related tools

View all (10)

Write a regular expression, pick your flags, and watch matches highlight in real time. Inspect every capture group with its index, try replacements, and grab common patterns from the built-in cheat sheet. Everything runs locally in your browser.

Frequently asked questions

Which regex syntax does it use?

JavaScript's — the exact engine your browser ships, including flags (g, i, m, s, u, y), lookaheads and named capture groups. The built-in cheat sheet offers common patterns to start from.

Can I test replacements, not just matches?

Yes. Enter a replacement string with $1, $& style backreferences and you will see the replaced result alongside the highlighted matches and capture groups.

Is my test text uploaded?

No. Matching runs locally in your browser's RegExp engine.