View Single Post
Old 02-07-2012, 10:32 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,109
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
easy with regex

find </p>\s*<p class ="calibre4">([a-z])
replace \1

NB the replace line has a space in front of \1

works with v4.2 regex, I have not upgraded to 0.5.1 yet.

pretty sure there are other threads on how to do this, a varienat for example is to test end of previous line for not fullstop not quote not questionmark
This will catch about 98% of them. that do not end in punctuation.

My Wrap line Regex lightly tests the last character in the first line:

([\w",])</p>\s+<p class="calibre4">([\w"“…])

\1 \2

(there is a space between the \1 and \2)

This still misses:
...Dr.
Smith said...

...Mike
German ...
theducks is offline   Reply With Quote