Boneyard Tools

Multi-Rule Find and Replace

Set up a list of find and replace rules and apply them all in one pass. Each rule runs on the result of the one before it, so you can clean up text in stages and see how many changes each rule made.

How to run multiple find and replace rules

  1. Paste your text into the source box.
  2. Add a rule for each change, set the find and replace values, and toggle regex, case, or whole word as needed.
  3. Read the live result and the per-rule count, then copy or download it.

Examples

Apply two rules in sequence

color and flavor
colour and flavour

Chain rules so one feeds the next

a
c

Frequently asked questions

In what order are the rules applied?

Rules run from top to bottom, and each rule works on the output of the previous one. That means a later rule can change text that an earlier rule produced, so the order of your rules matters. Reorder them if you get an unexpected result.

Can I mix literal text and regex in the same list?

Yes. Each rule has its own regex toggle. Leave it off for plain text, where special characters like a dot match only themselves, or turn it on to use patterns such as \d+ for numbers or \s+ for runs of whitespace.

What do the case sensitive and whole word options do?

Case sensitive treats 'Cat' and 'cat' as different. Whole word only matches a standalone word, so a rule for 'cat' will not touch 'category'. You can combine both on any rule.

What happens if a regex rule is invalid?

The tool stops and shows a message that names the rule with the broken pattern, for example Rule 3, instead of changing your text. Fix that rule and the result updates again.

Why does a rule show zero replacements?

A count of zero means that rule found nothing to change in the current text. That can happen if an earlier rule already removed the target, or if the find value does not appear at all.

Is my text private?

Yes. Every rule runs entirely in your browser and nothing is uploaded to a server.

Related tools