View Single Post
Old 01-18-2014, 12:18 PM   #78
unboggling
Wizard
unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.unboggling ought to be getting tired of karma fortunes by now.
 
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
Quote:
Originally Posted by theducks View Post

Why does it matter to a S&R if they are mixed in

BTW I have seen a non-pretty version, so a S&R REGEX for a BR
<br\s*/> no class
Calibre assigns a class (and includes the space)

<br class="calibre\d+" />
It's that simple? You just replace <br\s*/> with <br class="calibre\d+" />

Did you mean either of those are the Search regex, depending on whether book was previously converted by calibre or not?

What is the Replace regex to end up with
</p> closing prior paragraph and <p> opening next paragraph? Or whatever else is the best way to do it?

(I'm unskilled with regex too )

Last edited by unboggling; 01-20-2014 at 05:03 AM. Reason: undeleted a previously deleted previous strike-out edit. (Because it was quoted below.)
unboggling is offline   Reply With Quote