View Single Post
Old 06-18-2022, 12:00 AM   #10
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 784
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Quote:
Originally Posted by davidfor View Post
...I use:

Code:
([\w,—])</p>\s*<p\s*[^>]*?>([\w])
with the replace of:

Code:
\1 \2
It doesn't catch everything (it probably should have the other types of dash) but it catches most.
It might be a dependency of the editor, but in Calibre's you'd have to escape the "/" in "</p>". So, it would be:

Code:
([\w,—])<\/p>\s*<p\s*[^>]*?>([\w])
BTW: it's an amazing thing, but I came here looking for the exact same thing just now.
enuddleyarbl is offline   Reply With Quote