Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Hello All,
New poster, I did my best to search for this answer using keywords such as: atomic grouping, alternatives, bar OR pip equivalent, etc... but had no luck My question is, is there/what is the Microsoft Word find/replace equivalent of the regular expression (word1|word2) ? I've obviously tried | and \| with no luck. And any webpage I found with discussion of advanced find/replace for word did not go into atomic grouping. Thanks so much! -Hikari |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Have you tried the article that is found he
http://www.gmayor.com/replace_using_wildcards.htm It might contain some suggestions that would help you. Fred "Hikari" wrote: Hello All, New poster, I did my best to search for this answer using keywords such as: atomic grouping, alternatives, bar OR pip equivalent, etc... but had no luck My question is, is there/what is the Microsoft Word find/replace equivalent of the regular expression (word1|word2) ? I've obviously tried | and \| with no luck. And any webpage I found with discussion of advanced find/replace for word did not go into atomic grouping. Thanks so much! -Hikari . |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Hi Hikari,
If you want to find two different words in a search, you can use wildcards in the "Find what" box. To do this, perform the following steps. 1. In the "Find what" box, type []{n,m} 2. Between the square brackets, type all the letters that appear in the two words in alphabetical order. 3. Replace n with the length of the shorter word. 4. Replace m with the length of the longer word. 5. Click "More". 6. Select "Use wildcards". 7. Click "Find Next". For example, if you want to find "airplane" or "boat", the search string would be as follows: [abeilnoprt]{4,8} Unfortunately, this search can also find other words that match the criteria, but it will find all instances of airplane and boat. After you do a wildcard search, I recommend that you clear the "Use wildcards" checkbox and search for something else immediately. For more information about wildcard searches, see http://word.mvps.org/FAQs/General/UsingWildcards.htm . -- Hope this helps, Pesach Shelnitz http://makeofficework.com "Hikari" wrote: Hello All, New poster, I did my best to search for this answer using keywords such as: atomic grouping, alternatives, bar OR pip equivalent, etc... but had no luck My question is, is there/what is the Microsoft Word find/replace equivalent of the regular expression (word1|word2) ? I've obviously tried | and \| with no luck. And any webpage I found with discussion of advanced find/replace for word did not go into atomic grouping. Thanks so much! -Hikari . |
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
If the words are bracketed as shown then
\([a-zA-Z]{2,}|[a-zA-Z]{2,}\) will find them If the words are not bracketed use [a-zA-Z]{2,}|[a-zA-Z]{2,} These will find the whole string. Depending upon what you want to do with the string having found it determines whether anything else needs to be added. See http://www.gmayor.com/replace_using_wildcards.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Hikari wrote: Hello All, New poster, I did my best to search for this answer using keywords such as: atomic grouping, alternatives, bar OR pip equivalent, etc... but had no luck My question is, is there/what is the Microsoft Word find/replace equivalent of the regular expression (word1|word2) ? I've obviously tried | and \| with no luck. And any webpage I found with discussion of advanced find/replace for word did not go into atomic grouping. Thanks so much! -Hikari |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
where do I find the :find & replace when I need to edit in word | New Users | |||
Find+Replace Dialog Box, Replace with Format problem | Microsoft Word Help | |||
Find multiple characters in one find using MSword find/replace | Microsoft Word Help | |||
Using find and replace or macros to replace page ranges | Microsoft Word Help | |||
Find/ Replace is auto-capping the words I want to replace with | Microsoft Word Help |