R
R Jolly
Hi,
I'd like to create a macro that will change all instances of italic
and bold text in a document to <i>italic text</i> and <b>bold
text</b>. Then save the document as plain text. I'm using Word v.X
I'm new to this, so any advice appreciated.
First, I've got the find and replace bug(s) reported repeatedly in
this newsgroup. I had thought that a search for format italic and '*'
in the find box would work. But that finds just one character at a
time. Trying *{1,} has no effect. I can get a whole word with <*>, but
not strings of words.
Secondly I get word unexpectedly quitting frequently while trying out
these regexes.
Is there any solution to this other than upgrading to Word 2004? If I
learn enough VB to do it would that help? If so, any advice on good
resources?
Finally I'll give the big picture in case anyone has advice on that.
I've got a series of documents made from a single template. They are
to be converted to xml. The documents are fairly well structured,
consisting mostly of labeld text areas. My plan is to save as text and
use perl or python to parse the text and write the xml.
The only information that I care about which will be lost in a save as
text is the bold and italic formatting. The rest can be infererred
from text content.
I'd appreciate any comments or advice,
Richard
I'd like to create a macro that will change all instances of italic
and bold text in a document to <i>italic text</i> and <b>bold
text</b>. Then save the document as plain text. I'm using Word v.X
I'm new to this, so any advice appreciated.
First, I've got the find and replace bug(s) reported repeatedly in
this newsgroup. I had thought that a search for format italic and '*'
in the find box would work. But that finds just one character at a
time. Trying *{1,} has no effect. I can get a whole word with <*>, but
not strings of words.
Secondly I get word unexpectedly quitting frequently while trying out
these regexes.
Is there any solution to this other than upgrading to Word 2004? If I
learn enough VB to do it would that help? If so, any advice on good
resources?
Finally I'll give the big picture in case anyone has advice on that.
I've got a series of documents made from a single template. They are
to be converted to xml. The documents are fairly well structured,
consisting mostly of labeld text areas. My plan is to save as text and
use perl or python to parse the text and write the xml.
The only information that I care about which will be lost in a save as
text is the bold and italic formatting. The rest can be infererred
from text content.
I'd appreciate any comments or advice,
Richard