Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2015, 12:05 AM
MJA MJA is offline Simple 'OR' Search Using 'Find' Dialog Windows 10 Simple 'OR' Search Using 'Find' Dialog Office 2013
Banned
Simple 'OR' Search Using 'Find' Dialog
 
Join Date: Sep 2015
Posts: 3
MJA is on a distinguished road
Default Simple 'OR' Search Using 'Find' Dialog


Hi -- I'm having an exceedingly difficult time doing something that should be mind-numbingly easy. I want to use Word 2013's Find dialog box to do a simple 'OR' search. I'm used to using the '|' symbol to do these searches in Google or in other programs, i.e.: 'pheasant|rabbit' should return any instance of either 'pheasant' OR 'rabbit'.

I found a Microsoft page that seemed to show this would work (as long as the 'Wildcards' option was checked) but it does not work.

I'm sure the problem must be with me. It's a common technique and I can't believe Word doesn't have the capability after all these years. Can anyone tell me how to do such a search using the Find dialog?

Thanks.
Reply With Quote
  #2  
Old 09-23-2015, 01:19 AM
macropod's Avatar
macropod macropod is offline Simple 'OR' Search Using 'Find' Dialog Windows 7 64bit Simple 'OR' Search Using 'Find' Dialog Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

That's not how Find/Replace works in Word - or any other Office program produced by Microsoft or its competitors that I'm aware of. What you're describing is not wildcards; it's simply a series of alternate expressions. Besides which, you won't find a Microsoft page that suggests you can use | as a wildcard Find separator...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-23-2015, 02:12 AM
MJA MJA is offline Simple 'OR' Search Using 'Find' Dialog Windows 10 Simple 'OR' Search Using 'Find' Dialog Office 2013
Banned
Simple 'OR' Search Using 'Find' Dialog
 
Join Date: Sep 2015
Posts: 3
MJA is on a distinguished road
Default

Hi Paul, thanks for replying. I did see this information somewhere on a Microsoft page, but I'm not sure where anymore. It could be I was reading something for VBA and confused it with Word 'Find'. My impression was that regex could be used in find and replace but only if the 'Wildcards' box was checked. '|' is certainly a standard part of regex, but I think what I've learned in reading around since I made this post is that Word's regex capabilities are pretty inferior, so it's likely this just hasn't been included in the functionality. It would certainly be useful, but I don't have any illusions I'm going to motivate a corporation with Microsoft's corner on word processing to add functionality to my liking Thanks again.
Reply With Quote
  #4  
Old 09-23-2015, 02:43 AM
macropod's Avatar
macropod macropod is offline Simple 'OR' Search Using 'Find' Dialog Windows 7 64bit Simple 'OR' Search Using 'Find' Dialog Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Regex and a Word Find/Replace (even a wildcard one) are quite different. Each has its strengths and weaknesses. For example, Regex can only be used programmatically (e.g. via VBA) and can't take formatting arguments, whereas a Find/Replace (wildcard or otherwise) doesn't require programming (though it can be used with it) and can take formatting arguments. While there is some overlap in syntax between a Word wildcard Find/Replace and Regex, there's a lot that doesn't overlap - including the Regex | separator.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
'or' search, find & replace, wildcards



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find and close dialog box in Word 2010? geriatricq1 Word 3 02-16-2015 04:06 AM
Need Find and Replace dialog to default to "All" WaltR Word 1 01-01-2015 08:44 PM
Simple 'OR' Search Using 'Find' Dialog Find what box in Find and replace limits the length of a search term Hoxton118 Word VBA 7 06-10-2014 05:05 AM
Won't find in search ep2002 Word 3 10-31-2012 05:24 PM
Advanced find - default search all AdamSitra Word 0 08-03-2011 04:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft