How to use this developer tool
- Paste the records to parse.
- Enter a pattern containing one or more
(?<name>...)groups. - Choose flags; global matching is added for extraction.
- Run the tool and review the JSON records and unmatched counts.
Turn repeated JavaScript regex matches into records keyed by named capture groups. The extractor discovers group names from actual matches, preserves unmatched optional groups as null, and emits formatted JSON plus tabular export data. It works well for log lines, filenames, migration text, and other semi-structured input.
(?<name>...) groups.The JSON output contains one object per match, with properties taken directly from named capture groups.
Duplicate group names and their availability depend on the JavaScript engine and pattern structure.
Pattern: (?<key>\w+)=(?<value>\w+)
Input: mode=dark
Output: {"key":"mode","value":"dark"}The global iterator collects named groups only. Every record also carries the zero-based match index in the JSON metadata returned by the page.
Patterns without named groups are rejected. A 10,000-match cap prevents runaway result generation.
Patterns use the JavaScript regular expression engine available in your browser.
The tool reports the JavaScript syntax error and does not process the input text.
Pathological patterns can cause catastrophic backtracking. Test untrusted patterns on small input first.
Only when the Unicode-related flag and pattern semantics call for it; otherwise JavaScript uses UTF-16 code units.
No. Matching and replacement run in the current browser tab.
| Field | Meaning |
|---|---|
| Summary | High-level processing result |
| Statistics | Counts and validation details |
| Export | Copy-ready text plus structured data when available |
Browse more tools for code formatting & regex.
Open category hub