See exactly what your regex matches
Regular expressions are powerful but easy to get subtly wrong. Type a pattern and some sample text, and every match lights up instantly in the string below — so you can tell at a glance whether your pattern is too greedy, missing edge cases, or catching more than you intended. Toggle flags on and off to watch the behavior change in real time.
Capture groups, positions and flags
Each match is listed with its character position and every capture group, including named groups like (?<year>\d{4}). All six JavaScript flags are available: g global, i ignore-case, m multiline, s dotall, u unicode and y sticky.
Frequently asked questions
Which regex flavor is this?
JavaScript (ECMAScript) — the same engine as Node and browsers, with all standard flags and capture groups.
Does it show capture groups?
Yes — every match lists its position and all groups, numbered and named.
Is my data uploaded?
No — matching is entirely local to your browser.
More free tools
Developer tools: JSON Formatter, URL Encoder, Base64 Encode/Decode · See all Alienated Tools.