Every long document collects the same small mistakes repeated dozens of times: a product name spelled the old way, a client renamed halfway through drafting, "the" typed where "a" belongs in a sample sentence on every page. Fixing each one by hand is slow, and the real risk is missing one, so the document ends up half old and half new.

Find and replace exists to make that class of edit all at once, and to tell you how much it changed. This guide explains how the free Find and Replace tool on Ovatly works: plain search first, then the three options that control what counts as a match, and finally regular expression mode for pattern jobs.

Contents

  • Quick answer
  • What find and replace actually does
  • The three options: case, whole words, patterns
  • How to find and replace, step by step
  • Worked example: swapping a repeated word
  • When to use regex mode
  • Limitations and alternatives
  • Common mistakes
  • Troubleshooting
  • FAQs
  • Conclusion

Quick answer

To replace text throughout a document: paste the text into the Find and Replace tool, type what to find and what to replace it with, set the options you need, and read the match count before copying the result. Matching is case-insensitive by default, so "The" and "the" are both caught. Turn on case sensitive to treat them as different, whole word only to avoid changing parts of longer words, or regular expression for pattern work. Leave the Replace box empty to delete every match instead of swapping it.

What find and replace actually does

The tool scans the whole text for the string you give it and rewrites every occurrence in one pass. There is no approving each match individually. That is what makes it fast, and what makes the options matter: everything that matches your description changes, so the description has to be precise.

Two things make the result trustworthy. First, the tool reports exactly how many replacements it made, so you can compare that number with what you expected before you copy anything. If you believed a name appeared nine times and the count says fourteen, the extra five are worth a look. Second, nothing is applied to a file on disk: you paste text in and copy text out, and your original document stays untouched until you paste the result back.

The three options: case, whole words, patterns

Case sensitive. With this off, which is the default, the search ignores letter case: searching for "the" also finds "The" at the start of a sentence. Turn it on when case carries meaning, for example when a lowercase code and a capitalised name must be treated differently.

Whole word only. A plain search finds your string inside longer words too. Searching for "cat" would also change the start of "catalogue". Whole word matching uses standard word boundaries, so only standalone occurrences count. The tool's notes add an honest caveat: word boundaries work best with plain letters and digits, so text full of symbols deserves a careful check of the count and the result.

Regular expression. This switches the Find box from literal text to a pattern language. It is the mode for jobs that are about shape rather than exact wording: reformatting dates, normalising codes, or capturing parts of a match and rearranging them. In this mode the replacement supports group references, so $1 and $2 insert what the first and second groups captured, and $& inserts the whole match.

How to find and replace, step by step

  1. Paste the text to work on into the Find and Replace tool. If the text lives in a document, copy the whole thing, or just the section you want changed.
  2. Type what to find and what to replace it with. The replacement can be empty: an empty Replace box deletes every match, which is the quick way to strip a repeated word or marker from a draft.
  3. Set the options: case sensitive, whole word only, or regular expression. Start with all three off for a simple word swap; add them only when the job needs them.
  4. Read the match count and copy the result. The count is your verification step: it should match the number of changes you expected. If it does not, adjust the Find text or the options rather than copying a result you do not understand.

Worked example: swapping a repeated word

The tool's own example is a small one, which makes the mechanics easy to see. Take the text "the cat sat on the mat". Find: the. Replace: a.

The result is "a cat sat on a mat", with 2 matches replaced. Both occurrences changed, the one at the start of the sentence and the one before "mat", because case-insensitive matching is the default and "The" written with a capital would have been caught as well. If only the lowercase occurrences should change, that is exactly what the case sensitive option is for.

Scale that up and nothing changes: a 4,000-word report with a renamed product works the same way, one Find string, one replacement, and a count that tells you whether the replacements you got are the ones you expected.

When to use regex mode

Plain search answers "find this exact wording". Regex mode answers "find anything shaped like this". The jobs the tool is built for are pattern jobs like reformatting dates or codes: a date written one way throughout a document can be captured in groups and rebuilt in another order using $1 and $2 in the replacement.

Two safety properties matter here. If a pattern is invalid, the tool shows a clear error and changes nothing, rather than failing silently. And the match count still reports the truth: zero means the pattern matched nothing, usually because a character like . or * is doing its special pattern job when you meant the literal character.

Limitations and alternatives

The tool works on pasted text, not on files: there is no opening a document from disk and no saving back into one. For a change that must be tracked, reviewed or undone later, a word processor's own find and replace with change tracking is the better home. This tool is for the common case where the text is in front of you, copied from a web page, a chat or a draft, and you want the swap done and counted in seconds.

It also replaces everything that matches. There is no per-match approval, so where some occurrences should stay, a quotation keeping the old spelling, for instance, narrow the Find text with whole word matching or more surrounding context until the count equals the number you actually want changed.

Common mistakes

  • Forgetting case is ignored by default. A swap meant for a lowercase term also rewrites the capitalised one at sentence starts. Check the count, or turn on case sensitive.
  • Replacing inside longer words. Without whole word only, short search strings hide inside longer words and change them too.
  • Copying before reading the count. The match count is the only check between you and a document-wide mistake. A surprising number means stop and rethink the search.
  • Expecting a broken regex to do something. An invalid pattern changes nothing and shows an error; a valid pattern that matches nothing reports zero. Both are information, not failures.
  • Deleting with an empty Replace box by accident. An empty replacement is a feature when intended and a nasty surprise when not.

Troubleshooting

The count is higher than expected. Your search is matching more than you pictured: capitalised variants, or occurrences inside longer words. Add case sensitive or whole word only and watch the count fall to the number you meant.

The count is zero. Check the spelling of the Find text first. In regex mode, check the Regular expression option is on and that special characters are not silently changing the pattern's meaning.

FAQs

How is this different from my editor's find and replace? It works on any pasted text without opening a document, shows the replacement count before you copy, and handles regex groups in the replacement, which many simple editors do not.

Can I delete every occurrence of a word? Yes. Leave the Replace box empty and every match is removed. Turn on whole word only if you do not want parts of longer words touched.

Why did my regex match nothing? Check that the Regular expression option is on, and remember that characters like . and * mean something special in a pattern. The match count always tells you the truth: zero means no match.

What do $1 and $& mean in the replacement? In regular expression mode, $1 and $2 insert the text captured by the first and second groups in your pattern, and $& inserts the whole match. That is what makes pattern reformatting, like swapping the parts of a date, possible.

Is my text uploaded? No. Searching and replacing happen in your browser on your device.

Conclusion

Find and replace is a small tool with an outsized blast radius: one pass rewrites the whole text, so the discipline is in the checking. Describe the match precisely with the case, whole-word and pattern options, read the replacement count before you copy, and the job is both fast and safe. The rest of the Text and Writing Tools category covers the cleanup jobs that usually surround it.

Related guide: How to Type Faster: What a Good WPM Score Actually Is.