Replace Formatting With Tags

G

Guest

Hi,

I am trying to find out if I can achieve the following. I need to replace
formatting such as bold and italics with UBB tags at the start and end of the
formatted words. The modified test is then pasted into a message on an
Internet Forum. For example if I had "some bold text" I want to end up with
"some bold text". I have tried various options using find & replace
but the nearest I can get to is to put tags around each individual character.
The end result works but it is very clumsy having so may tags. Is there a
way that I can find the start and end of each piece of formatted text.

Thanks in advance,

Bob Beveridge.
 
G

Graham Mayor

In the find what box type CTRL+B this will display format font bold - leave
the box empty
in the replace box enter ^&[\b] and if you want the resulting text not
bold type CTRL+B twice in the replace box to give format font not bold.
Repeat for italic (CTRL+I)

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Guest

Graham,

Thanks so much for the reply - it works like a dream!

Bob.

Graham Mayor said:
In the find what box type CTRL+B this will display format font bold - leave
the box empty
in the replace box enter ^&[\b] and if you want the resulting text not
bold type CTRL+B twice in the replace box to give format font not bold.
Repeat for italic (CTRL+I)

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



Bob said:
Hi,

I am trying to find out if I can achieve the following. I need to
replace formatting such as bold and italics with UBB tags at the
start and end of the formatted words. The modified test is then
pasted into a message on an Internet Forum. For example if I had
"some bold text" I want to end up with "some bold text". I
have tried various options using find & replace but the nearest I can
get to is to put tags around each individual character. The end
result works but it is very clumsy having so may tags. Is there a
way that I can find the start and end of each piece of formatted
text.

Thanks in advance,

Bob Beveridge.
 
G

Graham Mayor

You are welcome :)

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



Bob said:
Graham,

Thanks so much for the reply - it works like a dream!

Bob.

Graham Mayor said:
In the find what box type CTRL+B this will display format font bold
- leave the box empty
in the replace box enter ^&[\b] and if you want the resulting
text not bold type CTRL+B twice in the replace box to give format
font not bold. Repeat for italic (CTRL+I)

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



Bob said:
Hi,

I am trying to find out if I can achieve the following. I need to
replace formatting such as bold and italics with UBB tags at the
start and end of the formatted words. The modified test is then
pasted into a message on an Internet Forum. For example if I had
"some bold text" I want to end up with "some bold text". I
have tried various options using find & replace but the nearest I
can get to is to put tags around each individual character. The end
result works but it is very clumsy having so may tags. Is there a
way that I can find the start and end of each piece of formatted
text.

Thanks in advance,

Bob Beveridge.
 

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