View Single Post
Old 09-06-2014, 12:35 PM   #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,086
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Dr C's tip is a great start: I prefer to use </p>\s+<p to allow for code indention variations

There will (always) be exceptions

Mr.</p>
<p>Jones


I have a series of these REGEX patterns I use

The one given is my usual first pass (use ALL with care. There are EXCEPTIONS where the lines should NOT be joined)

IMHO Always do a bunch of Find, Replace manually before letting the REGEX loose (if at all) to see if there are Gotchas in your pattern
theducks is offline   Reply With Quote