![]() |
|
![]() |
|
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
|
||||
|
||||
![]()
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] |
#6
|
|||
|
|||
![]() 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 |
#7
|
|||
|
|||
![]() Quote:
So, would this be the best way to find what I want: ([MDPS][rgsotef]{1,3})( ) |
#8
|
|||
|
|||
![]() Quote:
O, I didn't realize that. It is funny that there is an "r" in "Mrs" but not in "Missus". |
#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] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
dogufo | Word | 9 | 04-05-2019 04:04 AM |
![]() |
subodhgupta | Word | 4 | 05-22-2014 03:34 AM |
![]() |
dineshtgs | Word Tables | 1 | 04-07-2011 01:27 AM |