View Single Post
Old 12-26-2010, 11:04 AM   #24
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
this thread is very useful. I'd been fixing up line breaks manually in Word, which took ages.
I am amazed how easy it can be via regex.

I use variations of the code given earlier in this thread i.e.
What you want to do is something like this:
Find: ([a-z])</p>\s+<p class="calibre2">
Replace: \1


changing calibre2 as needed on a per book basis - sometimes it needs a different 1 or 2 digit number like calibre13

one that still slips though the test though, is when a sentence has split such that the new line starts with the one letter word capital I. can that also be caught via regex ?
cybmole is offline   Reply With Quote