A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Search/Find two words that are not next to each other



 
 
Thread Tools Display Modes
  #1  
Old August 28th 05, 09:55 PM
Philos
external usenet poster
 
Posts: n/a
Default Search/Find two words that are not next to each other

This is like a Boolean search; like you search in Google. You search for two
or three words and finds documents with those words, anywhere in the
document. However, in this case, in Word 2003, I am searching for two words
in ONE SENTENCE, anywhere in the sentence. If I am not mistaken this feature
was available in earlier editions of Word. Any solutions?
Ads
  #2  
Old August 28th 05, 10:07 PM
CyberTaz
external usenet poster
 
Posts: n/a
Default

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a period to
indicate that the string be within a sentence. Haven't tested it, but it
ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You search for two
or three words and finds documents with those words, anywhere in the
document. However, in this case, in Word 2003, I am searching for two words
in ONE SENTENCE, anywhere in the sentence. If I am not mistaken this feature
was available in earlier editions of Word. Any solutions?


  #3  
Old August 28th 05, 10:46 PM
Philos
external usenet poster
 
Posts: n/a
Default

I tried the following
.. *Peter*that* It finds these words, and the period preceeding them. But
they are not in one sentence. They are anywhere in the document.
likewise for this
*Peter*that*

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a period to
indicate that the string be within a sentence. Haven't tested it, but it
ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You search for two
or three words and finds documents with those words, anywhere in the
document. However, in this case, in Word 2003, I am searching for two words
in ONE SENTENCE, anywhere in the sentence. If I am not mistaken this feature
was available in earlier editions of Word. Any solutions?



  #4  
Old August 28th 05, 10:49 PM
Philos
external usenet poster
 
Posts: n/a
Default

In earlier versions of Word, I cannot remeber exactly, but there was a
feature in the search (some type of wildcard), where you entered a number,
lets say, 15 and it would find the two words you are searching for within 15
spaces. Does this help?

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a period to
indicate that the string be within a sentence. Haven't tested it, but it
ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You search for two
or three words and finds documents with those words, anywhere in the
document. However, in this case, in Word 2003, I am searching for two words
in ONE SENTENCE, anywhere in the sentence. If I am not mistaken this feature
was available in earlier editions of Word. Any solutions?



  #5  
Old August 29th 05, 05:23 AM
Doug Robbins
external usenet poster
 
Posts: n/a
Default

Try including a period after the final * as was suggested.

See the article "Finding and replacing characters using wildcards"
http://www.word.mvps.org/FAQs/Genera...gWildcards.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Philos" wrote in message
...
I tried the following
. *Peter*that* It finds these words, and the period preceeding them. But
they are not in one sentence. They are anywhere in the document.
likewise for this
*Peter*that*

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a period to
indicate that the string be within a sentence. Haven't tested it, but it
ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You search
for two
or three words and finds documents with those words, anywhere in the
document. However, in this case, in Word 2003, I am searching for two
words
in ONE SENTENCE, anywhere in the sentence. If I am not mistaken this
feature
was available in earlier editions of Word. Any solutions?





  #6  
Old August 29th 05, 05:26 AM
Graham Mayor
external usenet poster
 
Posts: n/a
Default

word1?{15,}word2

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


Philos wrote:
In earlier versions of Word, I cannot remeber exactly, but there was a
feature in the search (some type of wildcard), where you entered a
number, lets say, 15 and it would find the two words you are
searching for within 15 spaces. Does this help?

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a
period to indicate that the string be within a sentence. Haven't
tested it, but it ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You
search for two or three words and finds documents with those words,
anywhere in the document. However, in this case, in Word 2003, I am
searching for two words in ONE SENTENCE, anywhere in the sentence.
If I am not mistaken this feature was available in earlier editions
of Word. Any solutions?



  #7  
Old August 29th 05, 05:53 PM
Philos
external usenet poster
 
Posts: n/a
Default

I used the following:
same?{1,}drink
Results: it finds these words anywhere in the document.
I read You articel "Finding and replacing characters using wild cards" It
says,
{n,m} finds text containing between “n” and “m” occurrences of the previous
character or expression; so a{2,3} will find “aa” and “aaa”, but only the
first 3 characters in “aaaa” ).
So I used a second number to limit the previous "?" (any character) to five
times
same?{1,5}drink
Results: it still finds these words anywhere in the document.
What can be done to set a limit of the number of spaces or characters
between the two words in a search?

"Graham Mayor" wrote:

word1?{15,}word2

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


Philos wrote:
In earlier versions of Word, I cannot remeber exactly, but there was a
feature in the search (some type of wildcard), where you entered a
number, lets say, 15 and it would find the two words you are
searching for within 15 spaces. Does this help?

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a
period to indicate that the string be within a sentence. Haven't
tested it, but it ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You
search for two or three words and finds documents with those words,
anywhere in the document. However, in this case, in Word 2003, I am
searching for two words in ONE SENTENCE, anywhere in the sentence.
If I am not mistaken this feature was available in earlier editions
of Word. Any solutions?




  #8  
Old August 29th 05, 07:10 PM
Doug Robbins
external usenet poster
 
Posts: n/a
Default

same[A-z ]{1,25}drink

in a Wildcard Find will find "same" and "drink" with a maximum of 25
characters (including spaces) between them

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Philos" wrote in message
...
I used the following:
same?{1,}drink
Results: it finds these words anywhere in the document.
I read You articel "Finding and replacing characters using wild cards" It
says,
{n,m} finds text containing between "n" and "m" occurrences of the
previous
character or expression; so a{2,3} will find "aa" and "aaa", but only the
first 3 characters in "aaaa" ).
So I used a second number to limit the previous "?" (any character) to
five
times
same?{1,5}drink
Results: it still finds these words anywhere in the document.
What can be done to set a limit of the number of spaces or characters
between the two words in a search?

"Graham Mayor" wrote:

word1?{15,}word2

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


Philos wrote:
In earlier versions of Word, I cannot remeber exactly, but there was a
feature in the search (some type of wildcard), where you entered a
number, lets say, 15 and it would find the two words you are
searching for within 15 spaces. Does this help?

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a
period to indicate that the string be within a sentence. Haven't
tested it, but it ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You
search for two or three words and finds documents with those words,
anywhere in the document. However, in this case, in Word 2003, I am
searching for two words in ONE SENTENCE, anywhere in the sentence.
If I am not mistaken this feature was available in earlier editions
of Word. Any solutions?






  #9  
Old August 29th 05, 09:43 PM
Philos
external usenet poster
 
Posts: n/a
Default

Yes, I did try it with the period. It does not work: it does not limit the
distance between the words that are being searched. The asterisk * between
the words searches for "one or MORE spaces and/or characters." Is there a
way to LIMIT the spaces and/or characters between two words being searched?
"Doug Robbins" wrote:

Try including a period after the final * as was suggested.

See the article "Finding and replacing characters using wildcards"
http://www.word.mvps.org/FAQs/Genera...gWildcards.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Philos" wrote in message
...
I tried the following
. *Peter*that* It finds these words, and the period preceeding them. But
they are not in one sentence. They are anywhere in the document.
likewise for this
*Peter*that*

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a period to
indicate that the string be within a sentence. Haven't tested it, but it
ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You search
for two
or three words and finds documents with those words, anywhere in the
document. However, in this case, in Word 2003, I am searching for two
words
in ONE SENTENCE, anywhere in the sentence. If I am not mistaken this
feature
was available in earlier editions of Word. Any solutions?





  #10  
Old August 29th 05, 09:54 PM
Philos
external usenet poster
 
Posts: n/a
Default

Still loking for help. Boolean search is so common and useful ... wouldn't
the Microsoft programmers have thought of it?

"Philos" wrote:

I used the following:
same?{1,}drink
Results: it finds these words anywhere in the document.
I read You article "Finding and replacing characters using wild cards" It
says,
{n,m} finds text containing between “n” and “m” occurrences of the previous
character or expression; so a{2,3} will find “aa” and “aaa”, but only the
first 3 characters in “aaaa” ).
So I used a second number to limit the previous "?" (any character) to five
times
same?{1,5}drink
Results: it still finds these words anywhere in the document.
What can be done to set a limit of the number of spaces or characters
between the two words in a search?

"Graham Mayor" wrote:

word1?{15,}word2

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


Philos wrote:
In earlier versions of Word, I cannot remeber exactly, but there was a
feature in the search (some type of wildcard), where you entered a
number, lets say, 15 and it would find the two words you are
searching for within 15 spaces. Does this help?

"CyberTaz" wrote:

You might be able to do it with wildcards, such as :

.. *word1*word2*.

Starting with the period followed by a space and ending with a
period to indicate that the string be within a sentence. Haven't
tested it, but it ought to work.

Good Luck |:)


On 8/28/05 4:55 PM, in article
, "Philos"
wrote:

This is like a Boolean search; like you search in Google. You
search for two or three words and finds documents with those words,
anywhere in the document. However, in this case, in Word 2003, I am
searching for two words in ONE SENTENCE, anywhere in the sentence.
If I am not mistaken this feature was available in earlier editions
of Word. Any solutions?




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Capitalizing the right words in the titles in bibliographies Sam Microsoft Word Help 2 August 8th 05 06:16 PM
How do I build a word list with number of occurrences of each wor. Bill Crowl Microsoft Word Help 2 March 20th 05 12:17 AM
Word frequencies Anthea Microsoft Word Help 6 January 10th 05 05:46 AM
Word Count mel Microsoft Word Help 2 December 14th 04 11:17 PM
Recurring words/phrases Pegge New Users 1 December 9th 04 03:08 AM


All times are GMT +1. The time now is 01:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.