search and replace using wildcards

G

Giantpro

The Replace With tect contains a group mumber which is out of range. is the
error I get when trying to select everything between quotes to be bold....
any suggestions?
I am using wildcards * with exception \.
 
F

finalword

First, make sure "Replace straight quotes with Smart quotes" is checked, on
the "AutoFormat As You Type" tab under Tools | Autocorrect Options. Then
replace " with " (all the quotation marks with tehmselves), which will
replace any straight quotes in the document with smart quotes.

Now do your wildcard Find/Replace
In the Find What box, your text needs to be:
(")(*)(")
Note that your quotes MUST be smart quotes! I usually copy them from the
document and paste them in to the Find What box

Your Replace with text needs to be:
\2
and while your cursor is in the Replace with line, select the Format button
(if you don't see it, click MORE and then the Format button) Select Font and
choose BOLD

Make sure Use wildcards is checked and Replace all

FYI...you may end up with a few left over opening smart quotes which you can
remove by finding the Opening smart quote (remember, copy from the doc) and
replacing it with notihing (make sure to turn off the formatting in the
replace box by clicking the No Format button).
 

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