Wildcard search not working correctly

L

LED

I click on 'Use Wildcards' in Find and Replace and I'm trying to find the
words easy and entry in my document. So I put \e*y in my 'Find what:' field.

However, it will find sentences such as:

ew doc doc server or on local computer Find a doc might open from list of
Recently

because it starts with e and ends with y, but....it won't find the word
'easy' or 'entry' that is also located in the doc.

Do you know how I can have it stop finding what it finds as listed above and
have it actually find the easy and entry words?

Thanks in advance
LED
 
J

Jay Freedman

LED said:
I click on 'Use Wildcards' in Find and Replace and I'm trying to find
the words easy and entry in my document. So I put \e*y in my 'Find
what:' field.

However, it will find sentences such as:

ew doc doc server or on local computer Find a doc might open from
list of Recently

because it starts with e and ends with y, but....it won't find the
word 'easy' or 'entry' that is also located in the doc.

Do you know how I can have it stop finding what it finds as listed
above and have it actually find the easy and entry words?

Thanks in advance
LED

Use the special characters < and > to mark the ends of the word you're
looking for:

<e*y>

Otherwise the asterisk will match as many characters as possible.

See http://www.gmayor.com/replace_using_wildcards.htm for a full discussion.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
T

Thierry Fontenelle [MSFT]

Hello LED,

You might want to try the following regular expression:

<e[a-z]@y>

If you use "Reading Highlight" (Highlight All), you will see it only finds
and highlights "easy" and "entry" and not the other strings you mentioned.

I hope it will help.
Best wishes,

Thierry

Thierry Fontenelle [MSFT]
 
L

LED

Hi Thierry,

Thank you - that worked perfect.

I appreciate your help!!



Thierry Fontenelle said:
Hello LED,

You might want to try the following regular expression:

<e[a-z]@y>

If you use "Reading Highlight" (Highlight All), you will see it only finds
and highlights "easy" and "entry" and not the other strings you mentioned.

I hope it will help.
Best wishes,

Thierry

Thierry Fontenelle [MSFT]


LED said:
I click on 'Use Wildcards' in Find and Replace and I'm trying to find the
words easy and entry in my document. So I put \e*y in my 'Find what:' field.

However, it will find sentences such as:

ew doc doc server or on local computer Find a doc might open from list of
Recently

because it starts with e and ends with y, but....it won't find the word
'easy' or 'entry' that is also located in the doc.

Do you know how I can have it stop finding what it finds as listed above and
have it actually find the easy and entry words?

Thanks in advance
LED
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top