Guide · Data Tools / Text & Writing
About Regex Match & Capture Group Extractor
Execute a custom JavaScript RegExp pattern across any text block and extract full matches or a specific capture group with optional deduplication.
When to use this tool
Handy for pulling structured tokens, error codes, or specific parenthesized groups out of log dumps without writing a one-off script.
How to use Regex Match & Capture Group Extractor
- Paste source text into Input Text.
- Enter a valid RegExp Pattern and choose Capture Group (0 for full match, 1+ for parenthesized groups).
- Toggle Unique matches only and export the extracted matches.
Supported inputs, options, and outputs
- Inputs: Source text, RegExp Pattern, Capture Group number, and deduplication toggle.
- Outputs: Extracted match list plus total match count.
Accuracy notes and limitations
- Uses browser JavaScript RegExp semantics; lookbehind or Unicode property classes depend on modern browser support.
- Catastrophic backtracking patterns on large inputs can freeze the browser tab—test complex quantifiers on small samples first.
Privacy and browser processing
All text transformations run strictly in browser JavaScript without sending pasted drafts, identifiers, or transcripts to IJM servers. Hosted pages load cookie-free Vercel Web Analytics and Google Fonts.
Read the full IJM Privacy Policy or browse all Data Tools.