View Single Post
Old 01-10-2013, 11:52 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
RegEx to change but not all

Converted a MOBI to EPUB in Calibre and there's a gizillion of these that generate a validation error ('no character data is allowed by content model')

Code:
<blockquote>
text text text  text text text 
</blockquote>
but also some that have that<p> tags

Code:
<blockquote>
<p>
text text text
</p>
</blockquote>

The regex's I've tried so far have been spectacularly unsuccessful

Could some regex guru help with the S/R to fix the first, but not mess up the second?

Paul

Last edited by phossler; 01-10-2013 at 11:53 PM. Reason: RegEx to change SOME but not all
phossler is offline   Reply With Quote