How It Works Under the Hood
Rules execute sequentially (`rule 1 -> rule 2 -> ...`), compiling each enabled pattern either as an escaped literal/word-boundary (`\b...\b`) or raw JavaScript global regex with `$1..$9` capture backreferences and per-rule match telemetry.
Step-by-Step Instructions
Paste your raw log, CSV, config, or source text into Original Text.
Configure ordered replacement rules in the top pipeline, toggling Regex, Case Sensitive, or Whole Word per step.
Temporarily disable individual steps with checkboxes without deleting them, or click Add Rule to chain more passes.
Verify live per-rule match counts and copy Transformed Output.
Key Features & Performance
- Sequential multi-rule execution lets output of Rule #1 feed cleanly into Rule #2
- Supports full regex patterns plus `$1`..`$9` capture group substitutions and `\n` / `\t` escapes
- Per-rule diagnostics show exact match counts or non-crashing regex syntax errors immediately
- Per-step Enable/Disable checkboxes make iterative transformation debugging effortless
- 100% browser-local: safe for internal credentials, emails, and confidential database exports
Methodology, Formulas & Technical Standards
Escaped literal mode neutralizes regex metacharacters cleanly before optional `\b` word-boundary wrapping; regex mode resolves numeric capture backreferences explicitly during callback replacement.
Common Real-World Use Cases
- Scrubbing legacy domains, email addresses, and internal hostnames in one repeatable pass before sharing logs
- Reformatting copied database rows or markdown bullet lists into SQL/JSON snippets in 3 chained steps
- Applying multi-step code codemods or CSS prefix migrations offline
- Splitting or joining delimited lines using regex capture groups and `\n` escapes
Worked Examples & Edge Cases
Two-Step Log Normalization
Rule 1: @old-domain.com -> @microdeck.tools | Rule 2: user_id=(\d+) -> uid:$1
uid:101, email=alice@microdeck.tools...
Transforms both patterns deterministically in a single copyable view.
Capture Swap with Newlines
Regex: (\w+)=(\d+) -> $2:$1\n
Swaps key/value pairs and inserts line breaks simultaneously
Supports `$0` (full match) through `$9`.
Limitations, Scope & Accuracy Notes
- • Catastrophic backtracking patterns (nested quantifiers like `(a+)+` on huge strings) can stall single-threaded JS execution — test complex regexes cleanly.
- • Empty `Find` fields stay ignored cleanly until non-empty characters are typed.
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. Chained Multi-Rule Bulk Find & Replace runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
In what order do rules execute?
Strictly top-to-bottom (`#1` -> `#2` -> `#3`). Subsequent rules transform the updated text produced by earlier enabled rules.
Do `$1`, `$2` capture groups work in Regex mode?
Yes. Wrap tokens in parentheses `(...)` in Find and reference `$1`, `$2`, or `$0` in Replace.
What happens if I type an incomplete regex like `[abc` while editing?
The broken rule displays its syntax error message inline without crashing your input or preventing other rules from running.
Are sensitive files processed securely?
Yes. Everything runs locally inside your browser tab memory.
Explore Related Micro-Tools
Regex Visualizer & Natural Language Explainer
Explain regular expressions in plain English with live testing
Line List Cleaner, Deduplicator & Set Comparator
Deduplicate, trim, sort cleanly (numeric/natural/shuffle), wrap items, or run A∩B / A−B set math
Text Diff Checker & Patch Generator
Compare two text blocks line-by-line or word-by-word and export unified .patch files