#1   Report Post  
Posted to microsoft.public.word.docmanagement
MarkN
 
Posts: n/a
Default Find and Replace

Hello,

I was under the impression that if I do a wildard search using l*g it will
find words such as 'long' and 'lag' but not 'late arriving'. When I use the
above find criteria I pick up all three of these examples.

Does anyone know how I can fix this so that I only find individual words?
--
Thanks,
MarkN
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey
 
Posts: n/a
Default Find and Replace

Mark,

Use: l[! ]@g

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Hello,

I was under the impression that if I do a wildard search using l*g
it will find words such as 'long' and 'lag' but not 'late arriving'.
When I use the above find criteria I pick up all three of these
examples.

Does anyone know how I can fix this so that I only find individual
words?



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Herb Tyson [MVP]
 
Posts: n/a
Default Find and Replace

Although... that won't match anything starting with a capital L, since all
wildcard searches are case specific. The following variation should work
with capitals as well, and won't match "long-living":

[lL][a-z,A-Z]@[gG]

If he wants hyphenated stuff to match, he could use:

[lL][! ]@[gG]

--
Herb Tyson MS MVP
http://www.herbtyson.com
Please respond in the newsgroups so everyone can follow along.
"Greg Maxey" wrote in message
...
Mark,

Use: l[! ]@g

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Hello,

I was under the impression that if I do a wildard search using l*g
it will find words such as 'long' and 'lag' but not 'late arriving'.
When I use the above find criteria I pick up all three of these
examples.

Does anyone know how I can fix this so that I only find individual
words?





  #4   Report Post  
Posted to microsoft.public.word.docmanagement
MarkN
 
Posts: n/a
Default Find and Replace

Gents,

Thanks for your prompt response, I will give your suggestions a go. Without
sounding ungrateful (!!), I was hoping for something a little more generic to
allow me to use wildcards but only return whole words as opposed to strings.

I am having other issues where wildcards are not behaving as I believe they
have done in the past. I am currently working on a quite heavily customised
Normal.dot and so could either of you let me know whether my assertion about
what should be found with the examples in my original question are correct.
--
Thanks again,
MarkN


"Herb Tyson [MVP]" wrote:

Although... that won't match anything starting with a capital L, since all
wildcard searches are case specific. The following variation should work
with capitals as well, and won't match "long-living":

[lL][a-z,A-Z]@[gG]

If he wants hyphenated stuff to match, he could use:

[lL][! ]@[gG]

--
Herb Tyson MS MVP
http://www.herbtyson.com
Please respond in the newsgroups so everyone can follow along.
"Greg Maxey" wrote in message
...
Mark,

Use: l[! ]@g

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Hello,

I was under the impression that if I do a wildard search using l*g
it will find words such as 'long' and 'lag' but not 'late arriving'.
When I use the above find criteria I pick up all three of these
examples.

Does anyone know how I can fix this so that I only find individual
words?






  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey
 
Posts: n/a
Default Find and Replace

MarkN,

Well no your assertion is not correct:

l*g finds word starting with "l" and everything between that and a word
ending in "g."

Or l "A word starting with "l" * "everything" g "until the end of word
ending in "g."

To prevent bridging over words, you have to exclude the " "

So something like [! ]@ would find all individual words.


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Gents,

Thanks for your prompt response, I will give your suggestions a go.
Without sounding ungrateful (!!), I was hoping for something a little
more generic to allow me to use wildcards but only return whole words
as opposed to strings.

I am having other issues where wildcards are not behaving as I
believe they have done in the past. I am currently working on a quite
heavily customised Normal.dot and so could either of you let me know
whether my assertion about what should be found with the examples in
my original question are correct.

Although... that won't match anything starting with a capital L,
since all wildcard searches are case specific. The following
variation should work with capitals as well, and won't match
"long-living":

[lL][a-z,A-Z]@[gG]

If he wants hyphenated stuff to match, he could use:

[lL][! ]@[gG]

--
Herb Tyson MS MVP
http://www.herbtyson.com
Please respond in the newsgroups so everyone can follow along.
"Greg Maxey" wrote in message
...
Mark,

Use: l[! ]@g

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Hello,

I was under the impression that if I do a wildard search using
l*g it will find words such as 'long' and 'lag' but not 'late
arriving'. When I use the above find criteria I pick up all three
of these examples.

Does anyone know how I can fix this so that I only find individual
words?





  #6   Report Post  
Posted to microsoft.public.word.docmanagement
MarkN
 
Posts: n/a
Default Find and Replace

Thanks for clearing that up Greg, could you let me know one more thing, as I
now don't understand the difference between l*g and l*g, do they do the
same thing?
--
Thanks,
MarkN


"Greg Maxey" wrote:

MarkN,

Well no your assertion is not correct:

l*g finds word starting with "l" and everything between that and a word
ending in "g."

Or l "A word starting with "l" * "everything" g "until the end of word
ending in "g."

To prevent bridging over words, you have to exclude the " "

So something like [! ]@ would find all individual words.


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Gents,

Thanks for your prompt response, I will give your suggestions a go.
Without sounding ungrateful (!!), I was hoping for something a little
more generic to allow me to use wildcards but only return whole words
as opposed to strings.

I am having other issues where wildcards are not behaving as I
believe they have done in the past. I am currently working on a quite
heavily customised Normal.dot and so could either of you let me know
whether my assertion about what should be found with the examples in
my original question are correct.

Although... that won't match anything starting with a capital L,
since all wildcard searches are case specific. The following
variation should work with capitals as well, and won't match
"long-living":

[lL][a-z,A-Z]@[gG]

If he wants hyphenated stuff to match, he could use:

[lL][! ]@[gG]

--
Herb Tyson MS MVP
http://www.herbtyson.com
Please respond in the newsgroups so everyone can follow along.
"Greg Maxey" wrote in message
...
Mark,

Use: l[! ]@g

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Hello,

I was under the impression that if I do a wildard search using
l*g it will find words such as 'long' and 'lag' but not 'late
arriving'. When I use the above find criteria I pick up all three
of these examples.

Does anyone know how I can fix this so that I only find individual
words?




  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey
 
Posts: n/a
Default Find and Replace

See:
http://www.gmayor.com/replace_using_wildcards.htm

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Gents,

Thanks for your prompt response, I will give your suggestions a go.
Without sounding ungrateful (!!), I was hoping for something a little
more generic to allow me to use wildcards but only return whole words
as opposed to strings.

I am having other issues where wildcards are not behaving as I
believe they have done in the past. I am currently working on a quite
heavily customised Normal.dot and so could either of you let me know
whether my assertion about what should be found with the examples in
my original question are correct.

Although... that won't match anything starting with a capital L,
since all wildcard searches are case specific. The following
variation should work with capitals as well, and won't match
"long-living":

[lL][a-z,A-Z]@[gG]

If he wants hyphenated stuff to match, he could use:

[lL][! ]@[gG]

--
Herb Tyson MS MVP
http://www.herbtyson.com
Please respond in the newsgroups so everyone can follow along.
"Greg Maxey" wrote in message
...
Mark,

Use: l[! ]@g

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Hello,

I was under the impression that if I do a wildard search using
l*g it will find words such as 'long' and 'lag' but not 'late
arriving'. When I use the above find criteria I pick up all three
of these examples.

Does anyone know how I can fix this so that I only find individual
words?



  #8   Report Post  
Posted to microsoft.public.word.docmanagement
MarkN
 
Posts: n/a
Default Find and Replace

Hi Greg,

Doesn't the link to the gmayor website says exactly what I said, that the
limts a wildcard search to a word and not a string. Am I missing something
here?
--
Thanks,
MarkN


"Greg Maxey" wrote:

See:
http://www.gmayor.com/replace_using_wildcards.htm

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Gents,

Thanks for your prompt response, I will give your suggestions a go.
Without sounding ungrateful (!!), I was hoping for something a little
more generic to allow me to use wildcards but only return whole words
as opposed to strings.

I am having other issues where wildcards are not behaving as I
believe they have done in the past. I am currently working on a quite
heavily customised Normal.dot and so could either of you let me know
whether my assertion about what should be found with the examples in
my original question are correct.

Although... that won't match anything starting with a capital L,
since all wildcard searches are case specific. The following
variation should work with capitals as well, and won't match
"long-living":

[lL][a-z,A-Z]@[gG]

If he wants hyphenated stuff to match, he could use:

[lL][! ]@[gG]

--
Herb Tyson MS MVP
http://www.herbtyson.com
Please respond in the newsgroups so everyone can follow along.
"Greg Maxey" wrote in message
...
Mark,

Use: l[! ]@g

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


MarkN wrote:
Hello,

I was under the impression that if I do a wildard search using
l*g it will find words such as 'long' and 'lag' but not 'late
arriving'. When I use the above find criteria I pick up all three
of these examples.

Does anyone know how I can fix this so that I only find individual
words?




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace GREEK symbols in XP, 2K & 97 Jazz Microsoft Word Help 3 April 8th 05 08:13 PM
Problem with function "Find and Replace" in Word. Pat Microsoft Word Help 3 March 16th 05 01:04 PM
Find and Replace Michael R New Users 11 January 22nd 05 05:31 PM
Find and Replace anomaly BruceM Microsoft Word Help 7 January 18th 05 05:47 PM
find and replace symbols Tewodaj New Users 8 January 11th 05 02:22 AM


All times are GMT +1. The time now is 05:14 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"