Extract Regex Matches & Capture Groups From Text Locally
Regex Match Extractor applies any JavaScript regular expression with g, i, m, s, or u flags against raw logs, HTML snippets, CSV rows, or prose and pulls every matching substring or capture group into a clean copy-ready list—100% locally in your browser so sensitive server logs never leave your machine.
Extraction Controls & RegExp Flags
| Parameter | Behavior |
|---|---|
| Pattern Input | Standard JavaScript RegExp syntax with capture groups (...) |
| Flags | Global (g), Case-insensitive (i), Multiline (m) |
| Output | Line-by-line extracted matches and indexed capture group values |
| Data Privacy | Zero server uploads — safe for internal stack traces and access logs |
Common Extraction Tasks
- Pull order IDs or UUIDs from logs: Run
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}withgi. - Scrape Markdown links or image paths: Capture URLs from
\[.*?\]\((https?://[^)]+)\)locally.
Pair with Regex Tester, Regex Pattern Library, or browse all 134 Developer Tools.
Frequently asked questions
How do I extract only a capture group instead of the entire match?
Use parentheses (...) around the portion you want to isolate—for example, id=([0-9]+) captures just the numeric ID in Group 1 while matching the full key-value pair.
Why did my regex only return the first match?
Yes. Always keep the global (g) flag enabled when extracting multiple matches from a document; without g, JavaScript RegExp stops after the very first hit.
Is it safe to paste production server logs into Regex Match Extractor?
No. All log text and regular expressions execute inside your browser tab's JavaScript engine with zero network requests, which you can confirm in DevTools Network tab.