I had to do some similar text massaging recently and used OpenOfficeOrg Writer with Tom Bilek's AltSearch extension - it allows you to save complex search and replace expressions for re-use.
I also have OOOFBTools extension installed - it provides a number of useful line manipulation macros even if you don't want to export the final file as FB2.
BobC
|