
📎 This article includes 1 downloadable practice file ↓
Press Ctrl+H, click More >> and tick Use wildcards. Word now understands patterns — similar to regular expressions — and a 200-page cleanup takes seconds.
The building blocks
| Wildcard | Means |
|---|---|
? |
Any single character |
* |
Any string of characters |
[0-9] |
One digit |
[A-Z] |
One capital letter |
{2,} |
Two or more of the previous item |
( ) |
A group you can reuse as \1, \2 in Replace |
< > |
Start / end of a word |
8 patterns to copy
| Task | Find what | Replace with |
|---|---|---|
| Collapse double spaces | ( ){2,} |
\1 |
| Remove empty paragraphs | ^13{2,} |
^p |
| Swap “Last, First” to “First Last” | ([A-Za-z]@), ([A-Za-z]@) |
\2 \1 |
| Dates 2025-03-15 → 15/03/2025 | ([0-9]{4})-([0-9]{2})-([0-9]{2}) |
\3/\2/\1 |
| Find 10-digit phone numbers | <[0-9]{10}> |
(Find only, or highlight) |
| Bold every “Note:” at a paragraph start | (^13)(Note:) |
\1\2 + Format → Font → Bold |
| Remove text in brackets | \(*\) |
(leave empty) |
| Space after full stops | .([A-Z]) |
. \1 |
⚠️ In wildcard mode, the special characters
( ) [ ] { } < > ? * ! @ \ must be escaped with a backslash to be found literally — that is why brackets appear as \( and \) above. Also, ^p does not work in the Find box with wildcards on; use ^13 instead.Work safely
- Use Find Next and Replace a few times before Replace All.
- Ctrl+Z undoes a whole Replace All in one step.
- Turn on Track Changes first if the document is shared, so reviewers can see what changed.
Try it yourself: step by step
- Download messy-document.docx — each line contains one problem.
- Press Ctrl+H → More >> → tick Use wildcards.
- Line 1: Find
( ){2,}, Replace\1→ Replace All. Double spaces disappear. - Line 2: Find
([A-Za-z]@), ([A-Za-z]@), Replace\2 \1→ names become “Asha Sharma”. Then fix the dates with([0-9]{4})-([0-9]{2})-([0-9]{2})→\3/\2/\1. - Line 4: Find
.([A-Z]), Replace. \1to add the missing space. - Empty paragraphs: Find
^13{2,}, Replace^p. Brackets: Find\(*\), Replace with nothing.
📎 Practice files for this article
- 📘Messy practice documentContains double spaces, reversed names, ISO dates, phone numbers and brackets u2014 one for each pattern in the article.⬇ DOCX · 36 KB
Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.