Find and Replace Text Free Online with Regex and Multiple Rules
Replace one thing with another across a whole text, or run a list of replacements in one pass. Match whole words only, respect case, or switch on regular expressions with capture groups for patterns. Every run tells you how many replacements it made before you copy anything.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use Find and Replace Text
Step by step, start to finish.
On the left. Your original stays there untouched while the result builds on the right.
What to look for, and what to put instead. Leaving the second box empty deletes what you found.
They run top to bottom in a single pass, so a later rule works on the result of the earlier ones.
The number of replacements is shown under the rules. A zero means the match never happened, not that the tool did nothing.
Key Features
What this tool does, and what it does not do.
Add as many find and replace pairs as you need; they run top to bottom.
Capture groups work with $1, $2 and so on, and a pattern with a typo shows a clear error message.
Match cat without touching category, or match Apple but not apple.
The number of replacements is always shown, including zero.
The result updates while you edit the rules, so you see the effect before you copy.
The text and the rules both stay in your tab.
About Find and Replace Text
Find and replace is in every editor, built for one change at a time inside the document itself. When you have twenty substitutions to make across a block of text, that means twenty rounds of the same dialog box and a check of the result after each one.
This does the whole set at once. Each rule is a row, the rules run top to bottom in a single pass, and the result appears beside your original rather than on top of it. The number of replacements is on screen the whole time, so a rule that matched nothing is obvious straight away.
The default is deliberately literal. Nothing you type in the search box is treated as a pattern unless you switch on regular expressions, so a search for a price with a dollar sign in it, or a sentence with brackets, works without escaping anything. When you do want patterns, the switch is right there and the capture groups work the way they do everywhere else.
Frequently Asked Questions
Common questions about this tool.
More Text Tools
Other tools from the same hub, free and in your browser.
Feedback
No feedback on this tool yet. Yours would be the first.