Skip to main content
Toolzum

Bulk Regex Extractor & Replacer

Hunt IPs, API keys, emails and URLs across many logs or code files. Preview matches with real JS RegExp flags, extract a merged findings report, or download rewritten copies — all processed locally in your browser.

Runs on JSZip

100% Local Browser Native

How to Use the Bulk Regex Extractor & Replacer

1. Upload text files

Logs, code, CSVs, configs. Binaries are skipped with a named reason; keep backups before processing sensitive files.

2. Enter pattern, flags and mode

Preview up to 25 hits before running. Extract joins matches; replace creates rewritten copies rather than overwriting originals.

3. Download results

Save a ZIP of per-file outputs plus a merged findings report. Standard batch and download limits apply.

Similar Tools You Might Need

See all

Frequently Asked Questions

Extract or replace mode — which?

Extract harvests matches into per-file outputs and a merged findings report. Replace downloads rewritten copies with a -replaced.txt suffix; original files are never modified. Preview hits first and check a few results before sharing.

What pattern finds leaked secrets?

Use (api[_-]?key|secret|token)\s*[:=]\s*['"]?\S+ with the i flag for keys and \b[\w.-]+@[\w.-]+\.\w+ for emails. JavaScript RegExp has no (?i) prefix — put i in the Flags field. Run extract-only first, eyeball 20 hits for false positives, then tighten before any replace pass.

Which file types process safely?

Text files such as .txt, .md, .csv, .log, .json, .yaml, .js, .py, .sql, .html, .xml, .ts and .css. Binaries and archives are skipped with a clear error instead of being silently mangled.

Are my logs and code uploaded?

No — matching runs locally in your browser with the JS RegExp engine; sensitive logs never leave your device. Only result saves use the standard download gate.

What are the defaults and output filenames?

Mode defaults to extract and flags default to g: extract joins matches with newlines into <name>-extracted.txt, replace applies text.replace into <name>-replaced.txt. Without g, replace changes only the first hit, as JavaScript does. Guests batch 5 files, signed-in free users 25, and Pro up to 500.

Last updated October 2026