Find and Replace Bold formatting

J

John

I'm trying to replace bold formatting in documents with
HTML markup equivqnlents (ie removing bold formatting and
surround what was bold text with <b> and </b>). Although
in Find and Replace you can search for Bold formatting,
how do I find where the bold starts and ends, so that I
can use <b>\1</b> in the Replace box? I know I could save
the file as HTML, but this converts other types of
formattating to HTML that I don't want preserved.
 
K

Klaus Linke

Hi John,

Leave "Find what:" empty, and use <b>^&</b> in the Replace box.

I usually also choose "Format > Font > not bold" in "Replace with", so I
can see that I have already tagged bold formatting.

\1 is for wildcard searches. In wildcard searches, you can set up several
patterns for re-use by putting parentheses around them, and \1 would insert
the first of them, \2 the second, ...

Regards,
Klaus
 
J

John

Thanks Klaus, that works perfectly.
-----Original Message-----
Hi John,

Leave "Find what:" empty, and use <b>^&</b> in the Replace box.

I usually also choose "Format > Font > not bold" in "Replace with", so I
can see that I have already tagged bold formatting.

\1 is for wildcard searches. In wildcard searches, you can set up several
patterns for re-use by putting parentheses around them, and \1 would insert
the first of them, \2 the second, ...

Regards,
Klaus




.
 

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