Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding words near other words

0 views
Skip to first unread message

AH

unread,
Dec 15, 2004, 2:41:03 PM12/15/04
to
Is there a way to find instances of words near other words, or to do
Boolean-style searches, within a Word document?

For example, I want to find all instances of the word "hello" within 2 words
of "world". So, I would find "hello world", "hello happy world", "hello and
goodbye world."

I tried typing in Hello * World in the Find What... box, but that didn't work.

Any ideas? Thanks.


Klaus Linke

unread,
Dec 15, 2004, 4:59:11 PM12/15/04
to
There isn't a built-in text retrieval/query language. I wrote to
msw...@microsoft.com asking to add such a feature to Word (including, say,
"NEAR", Boolean operators such as "AND", "OR", "NOT"/"EXCEPT", and the
already existing "Sounds like" and "Match all word forms").

There seem to be only very expensive corporate solutions for this kind of
search like
http://www.isysusa.com/downloads/whitepapers/isyssdkwhitepaper.pdf

At least, I haven't seen a cheap or free add-in for this kind of query.

Regards,
Klaus

Jezebel

unread,
Dec 15, 2004, 6:02:01 PM12/15/04
to
Some of the regular expression gurus might have better suggestions, but you
can use --

Hello[!^013]*world

to find all instances of "Hello ... world" within one paragraph. You need
'Use wildcards' checked, and the test is case sensitive.


"AH" <A...@discussions.microsoft.com> wrote in message
news:926849D2-AAEC-4854...@microsoft.com...

Klaus Linke

unread,
Dec 15, 2004, 7:33:17 PM12/15/04
to
"Jezebel" wrote:
> Some of the regular expression gurus might have better suggestions, but
you
> can use --
>
> Hello[!^013]*world
>
> to find all instances of "Hello ... world" within one paragraph. You need
> 'Use wildcards' checked, and the test is case sensitive.

Find what: Hello[!^13]@world
would work as advertised...
The * wildcard matches anything, so the match wouldn't be restricted to a
paragraph.

Regards,
Klaus


Jezebel

unread,
Dec 15, 2004, 11:57:17 PM12/15/04
to
Klaus, try it!

"Klaus Linke" <in...@fotosatz-kaufmann.de> wrote in message
news:u6g%232Ty4E...@TK2MSFTNGP11.phx.gbl...

Klaus Linke

unread,
Dec 16, 2004, 10:23:45 AM12/16/04
to
> > Hello[!^013]*world

> Klaus, try it!

I did ;-)

Klaus


Hello, how are you?

this fear of being what they are:
dead.

at least they are not out on the street, they
are careful to stay indoors, those
pasty mad who sit alone before their tv sets,
their lives full of canned, mutilated laughter.

their ideal neighborhood
of parked cars
of little green lawns
of little homes
the little doors that open and close
as their relatives visit
throughout the holidays
the doors closing
behind the dying who die so slowly
behind the dead who are still alive
in your quiet average world
of winding streets
of agony
of confusion
of horror
of fear
of ignorance.

a dog standing behind a fence.

a man silent at the window.

Charles Bukowski (with small changes)

(you probably have to replace line breaks ^l with paragraph marks ^p first)


0 new messages