Need help with Search & Replace wildcards

I

Ivaylo

Hi all,

I have a very long Word document which I have to reformat
in certain way. Some of the changes include:

(1) applying <I> </I> tags to all italics phrases (not
just words), (something like this: sample phrase
(formated in italics) --> <I>sample phrase</I>);
(2) applying a <a href="bword://word>word1</a> tag to
some words I want to specify.
(3) applying a <font color="blue">word</font> to some
words I want to specify.

What bothers me is that I don't know which search and
replace strings I have to use since I'm not very familiar
with wildcards. What is important is that the search must
affect whole phrases with such formatting criteria not
just single words.

Can you help me with search & replace strings or a macro?

Thanks a lot
 
G

Graham Mayor

These are not wildcard searches

(1) Press CTRL+I (Italic) with the cursor in the search box and replace with
<I>^&<\I>
(2) Put the word in the search box and replace with <a
href="bword://word>^&</a>
(3) Put the word in the search box and replace with <font
color="blue">^&</font> - if you want the text to appear blue in the document
then in addition add format > font > blue to the replace string

For background on wildcard searches - see
http://word.mvps.org/FAQs/General/UsingWildcards.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>><
 

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