Thread: Regex examples
View Single Post
Old 09-29-2012, 03:01 PM   #154
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 660
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
I would remove ALL <span> (without anything behind) and let Tidy remove the corresponding closing spans.

Then search for
</p>

<p class="calibre">([a-z])
and replace it with
_\1
(_ = blank)

Also search for
([a-zA-Z,])</p>

<p class="calibre">
and replace it with
\1_
(_ = blank)
WS64 is offline   Reply With Quote