Word's wildcard search finds too much text

Joined
Sep 23, 2023
Messages
3
Reaction score
0
I'm trying to use Word's wildcard Find/Replace to find strings that omit the Oxford comma, like "dogs, cats, mice and birds". I'm using a Find pattern of "(<*>), (<*>), (<*>) and (<*>)" and a Replace pattern of "\1, \2, \3, and \4". But this finds a great deal of text that ends in the Find string, instead of just the Find string. How can I change the Find pattern to correct this?
 

macropod

Microsoft MVP
Joined
Mar 2, 2012
Messages
580
Reaction score
50
I'm trying to use Word's wildcard Find/Replace to find strings that omit the Oxford comma, like "dogs, cats, mice and birds". I'm using a Find pattern of "(<*>), (<*>), (<*>) and (<*>)" and a Replace pattern of "\1, \2, \3, and \4". But this finds a great deal of text that ends in the Find string, instead of just the Find string. How can I change the Find pattern to correct this?
It seems you haven't learnt much from: https://www.msofficeforums.com/word/52797-wildcard-search-using-finds-many-words.html
 
Joined
Sep 23, 2023
Messages
3
Reaction score
0
You're right, macropod. That solution works fine, but I've never used the ampersand symbol in a wildcard, so I don't understand how it works in "( [! ]@)( and [! ]@)\1" to find "anionic groups and cationic groups". To find "dogs, cats, mice and birds" I've tried "( [! ]@) (, [! ]@) (, [! ]@) ( and [! ]@)", but all it does is jump to the top of the document with no "Not found" notice.
 
Top