Skip to main content
Toolzum

Bulk Regex Extractor & Replacer

Hunt IPs, API keys, emails, and URLs across thousands of logs or code files — extract matches or replace in place. SREs scrub 5,000 logs before sharing — local JS RegExp, 2 free batches a day.

Runs on JSZip

100% Local Browser Native

How to Use the Bulk Regex Extractor & Replacer

1. Upload text files

Logs, code, CSVs, configs. Back up folders containing .env or .git internals before replace mode.

2. Enter pattern, pick mode

JS RegExp with flags; extract harvests matches to one file, replace rewrites in place. Preview hits first.

3. Download results

Findings file or rewritten ZIP. Saves count as Pro downloads (signed-in free: 2 a day).

Similar Tools You Might Need

See all

Frequently Asked Questions

Extract or replace mode — which?

Extract to harvest matches into one findings file (all leaked keys, all error lines); replace to rewrite files in place (redact secrets, update domains). Preview matches first — a 5,000-file replace is instant and permanent.

What pattern finds leaked secrets?

Start with (?i)(api[_-]?key|secret|token)\s*[:=]\s*['"]?\S+ for keys and \b[\w.-]+@[\w.-]+\.\w+ for emails. Run extract-only first, eyeball 20 hits for false positives, then tighten before any replace pass.

Which file types process safely?

Any text: .txt, .md, .csv, .log, .json, .yaml, .js, .py, .sql, .html. Binaries and archives skip automatically — never run replace across a folder containing .git internals or production .env files you haven't backed up.

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 count as Pro downloads — scrub before sharing, not after.

What are the defaults and output filenames?

Mode defaults to extract and flags default to g: extract joins every matchAll hit with newlines into <name>-extracted.txt, replace runs text.replace into <name>-replaced.txt. The picker accepts 10 extensions: .txt, .csv, .md, .json, .html, .xml, .log, .js, .ts and .css.

Last updated October 2026