Regex Tester with Explanations & Groups

Test JavaScript and Python regex with live match highlighting. See groups, indices, captured values and match counts, plus common pattern presets.

Presets:
Test Text
Matches

How it works

Groups, captures and what backreferences match

A capture group records the substring it matched so it can be referenced later — in the replacement string, in a conditional, or through a backreference such as `\1`. Group numbering follows the order of opening parentheses, including groups inside lookarounds.

Named groups (`(?<name>...)` and `\k<name>`) survive refactoring in a way numbered groups do not, and they make an expression self-documenting. They are supported in JavaScript and Python; support elsewhere varies by flavour.

Lookarounds

A lookahead `(?=...)` asserts what follows without consuming it, a lookbehind `(?<=...)` asserts what precedes. This is how you match a word boundary that is not whitespace, or require quotes without consuming them, which keeps the match available to the surrounding pattern.

Lookbehind must be fixed-width in JavaScript, which rules out `(?<=a*)`. A character-class alternative such as `(?<=[^,])` is usually the workaround.

Frequently Asked Questions

How do I test advanced regex patterns?
Enter your regex pattern with flags (g, i, m, s, u) and a test string. The tool highlights all matches with capture groups shown in distinct colours. It also explains the pattern and validates regex syntax.
How is this different from the basic Regex Tester?
The advanced version adds pattern explanation (shows what each part of the regex does), match indices, lookbehind/lookahead visualisation, and substitution preview — useful for complex patterns.
Is my data sent to a server?
No. Every tool on jsonversal runs entirely in your browser using the Web Crypto API, File API, and Clipboard API. Nothing is ever uploaded — not even the JSON you paste in.
Do I need an account or API key?
No signup, no email, no API key. All tools are free to use with no signup required.
Can I use these tools offline?
Yes. Once the page loads, all tools work offline. There are no external API calls or CDN dependencies at runtime.
🔒
Your data never leaves your device

All processing happens in your browser. No uploads, no tracking, no servers. Your API keys, configs, and private payloads stay private — 100% client-side.

esc
↑↓ navigate ↵ open esc close