Skip to content
IGCSE·Tuition
ICT · Lessons

Use find-and-replace without unintended changes

Replace All feels like a shortcut until you find a word changed in places you never looked.

On this page
  1. Why does a simple replace go wrong?
  2. A safe routine, step by step
  3. Worked example
  4. The mistake to watch for
  5. Check yourself
  6. Where this leads next

Find-and-replace changes text across a whole document in one action. The skill is to control exactly which matches change, because the tool follows your search text literally and does not know what you meant.

This appears in practical document tasks where a name, date, room or product code must be corrected throughout. It sits inside document editing and proofing, and it builds on the clean layout work in document production.

Why does a simple replace go wrong?

The search text is matched as letters, not as words. If you search for cat, the tool also finds the letters inside category and catalogue. Replacing all of them produces nonsense that is easy to miss on a quick read.

Two other settings matter. Match case decides whether Cat and cat count as the same. Whole word decides whether the search must stand alone, with a space or punctuation on each side.

A safe routine, step by step

  1. Read the task first. Note exactly what must change and what must stay the same.
  2. Type the search text and look at the match count before replacing anything.
  3. Set the options. Turn on whole word if the text could sit inside longer words. Turn on match case if capital letters matter.
  4. Check the count against what you expect. If it is higher, step through matches one at a time.
  5. Replace, then scan the whole document, including headers, footers and tables.
  6. Undo at once if anything looks wrong, and repeat with narrower options.

Worked example

This invented sentence is in a club notice. The task says: replace the word cat with dog wherever it names the animal.

The cat sat by the cat flap. A category list and a catalogue were on the shelf.

Step 1, search without options. The letters cat appear in: cat, cat, category, catalogue. That is 4 matches.

Step 2, compare with the task. Only the first two are the animal. The expected count is 2, so Replace All is unsafe.

Step 3, turn on whole word. Now only the standalone words match: cat, cat. The count is 2, which equals the expected 2.

Step 4, replace all. Result:

The dog sat by the dog flap. A category list and a catalogue were on the shelf.

Step 5, verify. The words category and catalogue are unchanged. Recount: 2 changes made, 2 intended.

The mistake to watch for

A student leaves the options off and uses Replace All on the first attempt.

Mistaken result: The dog sat by the dog flap. A dogegory list and a dogalogue were on the shelf.

The student trusted that the tool understood the sentence. It does not: it matched four sets of letters, so four changes were made. The fix is undo, turn on whole word, check the count is 2, then replace.

Check yourself

1. The text is: Hall B opens at nine. Hall B is near Hall Bridge Road. You search for Hall B with no options. How many matches are there, and how many are intended if only the hall must change?

Show answer

Matches: Hall B, Hall B and the start of Hall Bridge, so 3. Intended: 2. Whole word would exclude Hall Bridge, or you can step through the matches one at a time.

2. After a replace, the match count was 6 but the task expected 5. What should you do first?

Show answer

Undo, then find which match was not intended. Tighten the options or replace the matches one at a time and skip the extra one.

3. Why should you check headers, footers and tables after a replace?

Show answer

Matches can sit in places you are not looking at, and some searches only cover the main text by default. A name left unchanged in a footer is still an error in the final output.

Where this leads next

Once your replacements are controlled, move on to correcting inconsistent styles. Then test the whole module with the document editing practice set. The ICT practical task and evidence checker helps you confirm each change against the task wording.

If your edits keep creating new faults, our teachers can work through that pattern with you in online one-to-one ICT tuition.

Questions people ask

Should I always avoid Replace All?

No. Replace All is safe when the search text cannot appear inside any other word or phrase, and when you have checked the number of matches first. When a match count is higher than you expected, step through the hits one at a time instead.

What does the whole-word option do?

It makes the search match only complete words. Searching for cat will then skip category and catalogue. The option name can differ between programs, so find it in the search options of your own software and test it on a short sample first.

How do I know a replacement went wrong?

Read the changed document again, not just the places you expected. Compare the match count before you replace with the number of changes you intended. Use undo straight away if the numbers differ, then repeat with tighter options.

Updated:

Your next step

If your practical edits keep creating new errors while fixing old ones, a one-to-one teacher can watch your screen workflow and tighten the habits that cause it.

Paid one-hour trial at your assigned teacher’s confirmed rate, starting from RM80. Other fees, schedules and ongoing arrangements are confirmed directly with your teacher after the trial class.

Tuition is arranged with a parent or guardian. Send them this page on WhatsApp and they can enquire for you.

Parent or guardian? Enquire here

9,000+ students helped through our service