View Single Post
Old 06-29-2015, 02:57 AM   #3
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Quote:
Originally Posted by Chris_Snow View Post
Code:
<p class="calibre2"></p>The paragraph goes in here.
As you can see the "</p>" is at the beginning and not at the end. Is there an easy way to change this? There must be a regex I can use to "find/replace" it?
For this particular problem there's a regex for sure. But i guess this example does not cover all problems. There might be sentences not ending with a full stop, but with question marks, exclamation marks, parenthesis etc etc.

My approach would be to delete all </p> and let tiny do the rest.
rubeus is offline   Reply With Quote