![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
I can find "1" or "2" or "3" using wildcards like this:
Find: [123] but is there a way to find "1st" or "2nd" or "3rd"? In Google Docs you can use regular expressions: Find: 1st|2nd|3rd Any way to do this in Word? |
|
#2
|
||||
|
||||
|
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#3
|
|||
|
|||
|
Quote:
Perfect! That works nicely. |
|
#4
|
|||
|
|||
|
What about for something like this:
Find: Mr Mrs Dr Prof Sgt Pres (but NOT Sir and Miss) so I can Replace with: Mister Misses Doctor Professor Sergeant President |
|
#5
|
|||
|
|||
|
Quote:
Paul has given you a macro that can do multiple replaces. Just writing to note that Mrs. is not an abreviation for Misses (which is the multiple of Miss) but rather Missus which I have not seen used much. Mr., Mrs., Ms., and Miss: Everything You Need to Know About Titles |
|
#6
|
|||
|
|||
|
Quote:
O, I didn't realize that. It is funny that there is an "r" in "Mrs" but not in "Missus". |
|
#7
|
||||
|
||||
|
Finding them all could be done with a Single wildcard Find, but replacements would require individual Find/Replace operations. For a macro you could adapt for that, see: https://www.msofficeforums.com/55215-post6.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#8
|
|||
|
|||
|
Quote:
So, would this be the best way to find what I want: ([MDPS][rgsotef]{1,3})( ) |
|
#9
|
||||
|
||||
|
Quote:
Do be aware, though, that you're liable to get false matches, such as: Deer, Deft, Do, Door, Meet, Mess, Moss, Most, Pee, Pest, Pete, Poor, Sear, Seer, See, Set, Sore, etc.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find What Text (^&) is not working for find Italic formatted strings
|
Mercurial | Word | 5 | 06-29-2021 05:20 PM |
| Search Multiple Strings and if Present get single word as output | transactions | Excel Programming | 1 | 05-17-2019 11:18 AM |
word 2013 operation on text
|
dogufo | Word | 9 | 04-05-2019 04:04 AM |
Search Multiple strings and create new word file
|
subodhgupta | Word | 4 | 05-22-2014 03:34 AM |
Copying Multiple tables from excel into a single word document
|
dineshtgs | Word Tables | 1 | 04-07-2011 01:27 AM |