WORD: Rtf and search-replace (regexp/fonts)
Hi all,
Currently I am stuggling with two basic issues:
1). I got rtf (at least looks similar to this format) file but Word does not decode it correctly and I am getting it in native format without formatting. Can you advise how to open it correctly (see input attached saved as txt)?
2). I have a test in word which contains elemets in bold/italic/underline. Now I am thinking how I can use search-and-replace to make the following change:
this is bold. -> <b>this is bold</b>
this is italic;44 -> <i>this is italic;44</i>
etc.
I tried with regular expressions, but cannot build regexp to cover all cases (as sometimes . at the end of sentence is italic, sometimes is not).
thanks, Setesh
|