Document Editing Problems

Replace Part of a Match in Microsoft Word with Wildcards

Amos GikundaAmos Gikunda Nov 22, 2026 869 views

Question details

Replace the word pounds with lbs while preserving the number before it in a Word document.

Replace Part of a Match in Microsoft Word with Wildcards
Product
Microsoft Word
Device & OS
not provided
Scenario
A document contains measurements such as 2 pounds, and the user wants to change the unit without changing the number.
Observed behavior
The desired result is for text such as 2 pounds to become 2 lbs, with the number and following space retained.
Before you start

Identify the measurement format in your document. The wildcard example matches digits followed by one space and the word pounds, such as 25 pounds.

Solution 1Recommended

Use a wildcard capture group to preserve the number

Use this method when you want to replace pounds only as part of a number-and-unit match.

The parentheses capture the digits and space. The backreference \1 inserts that captured text unchanged before lbs.

1
Open Replace

In Word, open Home > Replace. On Windows, you can also press Ctrl+H.

2
Enable wildcards

Select More if the search options are hidden, then check Use wildcards.

3
Enter the pattern

In Find what, enter ([0-9]{1,} )pounds. The {1,} expression matches one or more digits, and the space inside the parentheses is preserved.

4
Enter the replacement

In Replace with, enter \1lbs.

5
Check and replace

Select Find Next and Replace to check individual matches. Once the results are correct, select Replace All if appropriate.

Use a wildcard capture group to preserve the number
Check the spacing: This pattern requires exactly one space between the digits and pounds. Measurements with different spacing need a modified search.
Free Microsoft Office alternative

Edit and replace text in documents with WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface for editing documents and replacing text. Open existing Word files to continue working with minimal disruption; it does not fix Microsoft Word's wildcard settings.

Find and replace words in WPS Writer documentsOpen and edit Microsoft Word DOC and DOCX filesUse a familiar interface for everyday document editingWork with a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

What does \1 mean in Word's Replace with box?

It inserts the text matched by the first parenthesized group in Find what. In ([0-9]{1,} )pounds, that group contains the digits and the following space.

Where do I turn on wildcards in Word?

Open Home > Replace, select More if needed, and check Use wildcards.

Why doesn't the pattern find a measurement without a space?

The pattern includes a space between the digit expression and the closing parenthesis. It matches text such as 2 pounds, not 2pounds.

Can I replace pounds without using wildcards?

Yes. In Home > Replace, search for pounds and replace it with lbs. Enable Find whole words only if you do not want to change the text inside longer words, and review matches in other contexts.