How to Use Word Wildcard Find and Replace for Apostrophe-Enclosed Words
Question details
The user wants to find words wrapped in apostrophes using wildcard searches and dynamically reuse the captured word in the replacement text.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Performing advanced text manipulation where specific words enclosed in single quotes or apostrophes need to be identified, modified, or incorporated into a new phrase without losing the original word.
- Observed behavior
- The user needs the exact wildcard syntax and replacement expression to successfully capture the target string and output it properly using backreferences.
Before proceeding, ensure you have enabled the 'Use wildcards' option in the Find and Replace dialog, as standard searches will treat brackets and parentheses as literal text rather than code.
Use Wildcard Search with Parentheses Grouping and Backreferences
Utilize Word's wildcard grouping feature to capture the specific word inside apostrophes and replace it using the \1 backreference.
In Word, parentheses () in a wildcard search act as a grouping mechanism. Whatever text is captured inside the parentheses can be 'recalled' in the replace box using a backslash followed by a number (e.g., \1 for the first group).
Press Ctrl + H on your keyboard to open the Find and Replace dialog box.
Click the 'More >>' button in the lower-left corner of the dialog and check the box for 'Use wildcards'.
In the 'Find what' box, type '([A-Za-z]{1,})'. This tells Word to look for an apostrophe, followed by one or more letters (captured as a group), followed by another apostrophe.
In the 'Replace with' box, type \1 to insert the captured word. You can also add text around it, such as 'My full name is \1 Smith'.
Click 'Find Next' to verify it targets the correct words, then click 'Replace' or 'Replace All' to update your document.

Use Advanced Find and Replace in WPS Writer
WPS Writer offers powerful, highly compatible wildcard search features, allowing you to seamlessly find, capture, and replace complex text patterns like apostrophe-enclosed words with ease.
- 1. Open your Document: Launch WPS Writer and open the document you wish to edit.
- 2. Launch Find and Replace: Press Ctrl + H to bring up the Find and Replace dialog.
- 3. Turn on Wildcards: Click the 'Options' button and check the 'Use wildcards' box.
- 4. Input the Search Syntax: Type '([A-Za-z]{1,})' into the Find box, and enter your desired \1 string in the Replace box.
- 5. Execute the Replacement: Click 'Replace All' to quickly update all matched instances across your document.

Frequently Asked Questions
Why is Word not finding the text even though I entered the wildcard correctly?
You must explicitly check the 'Use wildcards' option in the expanded Find and Replace dialog (accessed by clicking 'More >>'). Without this checked, Word treats characters like brackets and parentheses as literal text.
Can I capture multiple words inside the apostrophes instead of just one?
Yes. To capture multiple words (including spaces), you can modify the wildcard in the 'Find what' box to '([A-Za-z ]{1,})' (adding a space after the z), or use '(*)' if you want to capture any character placed between the apostrophes.
What exactly does \1 mean in the Replace box?
\1 is known as a backreference. It commands the software to insert the exact dynamic text that was captured inside the first set of parentheses () from your 'Find what' wildcard pattern.
Does this wildcard trick work with smart quotes (curly quotes)?
If your document uses AutoFormatted 'smart quotes' instead of straight apostrophes, the straight quote character will not match. You need to type or paste the exact curly quote characters into the Find what box, such as ‘([A-Za-z]{1,})’.




