View Single Post
Old 10-19-2011, 02:45 PM   #44
Blossom
Treasure Seeker
Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.
 
Blossom's Avatar
 
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
Quote:
Originally Posted by DiapDealer View Post
For broken sentences in HTML, I use the following search regex:
Code:
([^.”":?’'!>—…)])</p>\s+<p[^>]*>
And the replace would be:
Code:
\1
(NOTE: there needs to be a "space" character following the \1 for it to work properly)

I don't trust it enough to blindly do a "Replace All" on a whole book, but I rarely have to intervene when stepping through a document an incident at a time.
I will have try this when working with code.
What program does this work with? I've tried Notepad++ and Notepad2 and it can't find anything.

Last edited by Blossom; 10-19-2011 at 02:48 PM.
Blossom is offline   Reply With Quote