View Single Post
Old 06-29-2015, 01:55 AM   #1
Chris_Snow
Zealot
Chris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipse
 
Posts: 148
Karma: 8170
Join Date: Jul 2013
Device: kobo glo
</p> at beginning of paragraph - how do I change?

Greetings,

I have a file I'm using as a test bed to learn regex. It is a badly converted PDF to epub. The original file had the actual body of the text under the misc folder within the epub.

I didn't know how to fix that so I converted to html, then back to epub. That seems to have fixed the problem of the text body now being where it should be.

However...the code for the paragraphs is...

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?

I have learned a lot about how to tweak things using regex on this file, but this is somewhat beyond me.

Appreciate the assistance.

Update: I found out I could use .* and some variations to achieve a result. Got all the end tags where they belong now.

Last edited by Chris_Snow; 06-29-2015 at 02:18 AM.
Chris_Snow is offline   Reply With Quote