Developer Cleanup

Bulk find and replace

Transformed in your browser · nothing is uploaded

Local · pairs run in order, so order them carefully
Advertisement
320 × 100

Applies a whole list of find-and-replace pairs in one pass, one `find | replace` per line. Matching is case-insensitive and plain text.

How to use the bulk find and replace

1 Paste your text into the first box.
2 The result appears immediately.
3 Copy the result, or save it as a text file.

The thing to watch is that the pairs run in order, so an earlier replacement can be found again by a later one. Replacing a with b and then b with c turns every original a into c, which is rarely intended and is the source of most surprises with bulk replacement. Order the pairs so that no replacement value appears in a later find, or use placeholder values in a first pass and resolve them in a second. For a single replacement with regular expressions and case sensitivity, the find and replace tool has the finer controls.

Questions

Yes, and an earlier replacement can be caught by a later find. Replacing a→b then b→c turns every a into c.

MDN, working with strings
Advertisement
300 × 250
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding