Originally Posted by theducks
Should work to remove things outside those tags
Don't try this on any copy you want to be usable after you are done,
BUT YOU WERE WARNED that there are other valid things between the closing </p> and the Next <p> that should not be removed: The list is big, so I am not wasting my time typing it.
Cool! I've tried it on several epubs but it often selects p-tag stuff. Maybe I'm doing it wrong? I'm using Sigil 7, under various search settings. Earlier I tried exploiting the fact that angle brackets within paragraphs usually have a space before them with this regex:
Which works, but only occasionally. It operates under the assumption that the epub is well-formed, with lines between non-p tags and spaces between other tags.
You're my hero! I'll definitely tinker with this regex some more!