Skip to content
DocumentTaskLab

Word tasks · Editing

Use Find and Replace with wildcards in Word

Written November 21, 2026

Plain Find and Replace swaps one exact string for another. Wildcards swap a pattern instead: every date written one way, every name in first-last order, every word with one uncertain letter. This guide turns the option on, covers the handful of symbols that do most of the work, and walks through two careful replacements — swapping names and reformatting dates — one match at a time.

Turn on Use wildcards

Wildcards live in the full Find and Replace dialog on desktop Word for Windows. Microsoft covers the basic dialog in its Replace text page; the wildcard option sits in the expanded half of that same dialog.

  1. Save a copy first. A pattern can match far more than you expect. Work on a copy of the document, or save a fresh version, so a bad Replace All is easy to walk away from.
  2. Open Find and Replace. On the Home tab, choose Replace, or press Ctrl+H to open the dialog.
  3. Expand the dialog and tick the box. Click More to show the search options, then select Use wildcards. Some other options, such as Find whole words only, switch off while wildcards are on — that is normal, because the pattern itself now controls what counts as a match.
  4. Test with Find Next before replacing anything. Type the pattern in Find what, click Find Next a few times, and read each match in context. Only move to Replace, one match at a time, once the matches are exactly the text you meant.

The symbols that do most of the work

Microsoft lists Use wildcards among the search options in its Find text guidance, giving the example that a pattern with an asterisk can match several different words that share a start. The core set is small:

Wildcards are not regular expressions

Word wildcards look like the regular expressions used in programming, and many symbols behave alike, but they are a smaller, Word-only set. A dot is just a dot here, repetition uses curly-bracket counts rather than the forms other tools use, and a backslash in the Find what box does not group anything — groups are referenced only in the Replace with box, as \1, \2 and so on.

Swap first and last names with groups

Say a list reads “Jane Smith” throughout and the house style wants “Smith, Jane”. Two groups — one for each name — and a replacement that puts them back in the other order does the whole list.

  1. Select the list first. Highlight just the block of names before opening the dialog. A two-word pattern will match ordinary word pairs anywhere in a document, so limiting the search to the selection keeps it away from body sentences.
  2. Enter the pattern. In Find what, type: ([A-Za-z]{1,}) ([A-Za-z]{1,}) — the first group captures a run of letters, then a space, then the second group captures the next run of letters.
  3. Enter the replacement. In Replace with, type: \2, \1 — the second group, a comma and a space, then the first group.
  4. Replace one at a time and read each result. Use Find Next, then Replace, for every entry. A middle initial, a two-part surname or a title in front of the name will not fit the simple pattern — skip those matches and fix the few odd entries by hand.

Reformat dates with groups

The same trick rearranges dates. This example takes dates written as month/day/year, such as 03/14/2026, and rewrites them as 2026-03-14.

  1. Enter the pattern. In Find what, type: ([0-9]{1,2})/([0-9]{1,2})/([0-9]{4}) — three groups for the month, the day and the four-digit year, separated by the slashes in the text.
  2. Enter the replacement. In Replace with, type: \3-\1-\2 — the year group first, then the month group, then the day group, joined by hyphens.
  3. Step through the matches. Replace one at a time. Stop on anything that is not a date: a fraction, a file path fragment or a ratio can share the same digit-slash-digit shape.

Only run this pattern on a document where every date of that shape really is month first. If the source mixes month-first and day-first dates, no pattern can tell them apart — sort those out by hand before replacing anything.

End state

When it goes wrong

Related document tasks

Sources

  • Microsoft Support, Replace Text — the Find and Replace dialog, its search options including Use wildcards, and replacing one match or all matches.
  • Microsoft Support, Find text — the Find options, including Use wildcards for partial matches and how the options differ between versions of Word.