Thread: Regex examples
View Single Post
Old 06-22-2012, 08:55 PM   #89
goldilocks
Addict
goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.goldilocks ought to be getting tired of karma fortunes by now.
 
Posts: 231
Karma: 1028386
Join Date: Aug 2009
Location: Florida
Device: Sony PRS-505
Help! I am clueless about regex. I have a Word document I saved as HTML Filtered (sure didn't seem to filter much!). I imported it into Calibre and converted to ePub. Between MSO and Calibre I ended up with over 41,000 rows in the CSS. Every paragraph has its own class. Examples:
<p class="MsoNormal79"><span class="calibre14">
<p class="MsoNormal80"><span class="calibre20">
<p class="MsoNormal81"><span class="calibre20">
<p class="MsoNormal82"><span class="calibre17">

I want them all to say:
<p class="paragraphtext">

Can I put something in find to replace them all at once?

Karen
goldilocks is offline   Reply With Quote