Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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 | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace GREEK symbols in XP, 2K & 97 | Microsoft Word Help | |||
Problem with function "Find and Replace" in Word. | Microsoft Word Help | |||
Find and Replace | New Users | |||
Find and Replace anomaly | Microsoft Word Help | |||
find and replace symbols | New Users |