View Single Post
Old 05-13-2013, 09:13 PM   #9
CyanBC
Junior Member
CyanBC began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2013
Device: Kindle Touch
Quote:
Originally Posted by mzmm View Post
are you sure they're not calibre's smart quotes? it would be easier if they were because then you wouldn't have the conflict with the classes/ids.

you could try this, but it may just end up causing more problems than it's worth. maybe saves you a bit of time?

Code:
find:
(?s)(<p[^>]*>)([^"]+".+)</p>\s+?<p[^>]*>([^"]+")

repl:
\1\2 <----- trailing white space
Awesome thanks
From the original code you provided I was getting entire sections highlighted, but if I take out the . it works in a passive aggressive way. Good enough for me to find the sections and hand change them.

Code:
(?s)(<p[^>]*>)([^"]+"+)</p>\s+?<p[^>]*>([^"]+")
This highlights the second sentence of an unfinished paragraph but not the first. I'm not sure how to fix it so it gets the whole sections but it does find the errors so that I can fix them. Thank you so much!
CyanBC is offline   Reply With Quote