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
- Paste your text into the source box.
- Add a rule for each change, set the find and replace values, and toggle regex, case, or whole word as needed.
- 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
Find and Replace
Find and replace text online with literal or regex search, case sensitivity, and replace first or all. See a live count of changes. Free and private.
Remove Extra Spaces
Remove extra spaces from text online. Collapse double spaces and tabs to one, trim every line, drop blank lines, then copy or download. Free and private.
Sort Lines
Sort lines of text alphabetically or numerically online. Reverse the order, ignore case, and remove duplicate lines, then copy the result. Free and private.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.
Bullet List Maker
Turn lines of text into a bullet or numbered list online. Pick dash, asterisk, dot, arrow or numbers, add indent, then copy. Free and private.
Caesar Cipher
Encode and decode text with the Caesar shift cipher. Pick any shift, see the result live, and brute force all 25 shifts. Runs entirely in your browser.