Wildcard search help. please?

E

Ed

*sigh* One of these days I'll get it! .. maybe ..

I have a list with items indented with two tabs, sequential numbers in
parentheses, and a tab (manually inserted, not autogenerated). With "Use
Wildcards" checked, I'm trying to Find
^t^t^40[0-9]{1,2}^41^t
and it says "Search item not found".

What do I have wrong?

Ed
PS - Word XP
 
J

Jay Freedman

Even though you used the "^" codes for the parentheses, they still have to
be escaped with a backslash so they won't be interpreted as special
characters. So you might as well just use escaped parentheses instead of the
codes:

^t^t\([0-9]{1,2}\)^t

Graham mentions this in the third-to-last paragraph on
http://www.gmayor.com/replace_using_wildcards.htm.

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

Ed

Thanks for the reply, Jay. Actually, as I was preparing a reply to tell you
that it didn't work, I found my error - I had a space at the beginning of
the search string! Such a small thing to make me want to kill my computer
.....

Thanks for the boost.
Ed

Jay Freedman said:
Even though you used the "^" codes for the parentheses, they still have to
be escaped with a backslash so they won't be interpreted as special
characters. So you might as well just use escaped parentheses instead of
the codes:

^t^t\([0-9]{1,2}\)^t

Graham mentions this in the third-to-last paragraph on
http://www.gmayor.com/replace_using_wildcards.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so all may benefit.
*sigh* One of these days I'll get it! .. maybe ..

I have a list with items indented with two tabs, sequential numbers in
parentheses, and a tab (manually inserted, not autogenerated). With
"Use Wildcards" checked, I'm trying to Find
^t^t^40[0-9]{1,2}^41^t
and it says "Search item not found".

What do I have wrong?

Ed
PS - Word XP
 

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