Regex Tester / Extractor
Test regular expressions, see highlighted matches, extract capture groups, and preview replacements — all locally in your browser.
Compiled in 0ms
Active: ig
Tip:
m for multi-line, s for dot-allMatches: 0
Extractor (capture groups)
Groups: 0
No extracted results yet.
Use group
0 for the entire match; 1 for the first capture, etc.Replace preview
Type a replacement to preview results.
Supports
$& = whole match, $1+ = capture groups.Matches & groups
| # | Index | Match | Captures | Named groups |
|---|---|---|---|---|
| No matches yet. | ||||
Notes:
- Runs fully in your browser. No data is sent to a server.
- Use the g flag for all matches; otherwise only the first match is shown.
- Multiline anchors require m. Dot to match newlines requires s.
- Named groups are shown when you use (?<name>…).