View Single Post
  #2   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Searching for either a character or no character

Search for
[Ii]t['s]{1,2}
or
it['s]{1,2}
with the wildcard option set -
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


Larry wrote:
Let's say I want to search for all instances of "its" and "it's" in a
document. I could do that with two searches, one for "its" and one
for "it's." But can I search for them with one search? For that I
would need search parameters that would be either one character (the
apostrophe) or no character. I don't see any way in Word to do that.

It would need to be something like this:

it['[no character]]s

I use Word 97.

Thanks.
Larry