Find and Replace Bold formatting

  • Thread starter Thread starter John
  • Start date Start date
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.
 
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
 
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




.
 
Back
Top