I would second eschwartz. Some things are best done in CV where you can see the paragraph code variants .
I have 3 saved REGEX saved searches, of which only 1 can safely be run: 'Replace All' on the whole book.
Another can be run Replace All, but only for 'Selected files' (the main book. Not the rest that may not use lines without ending punctuation)
The third is only run ('selected files) Find/Replace-Next , Carefully, reading the context before hitting the 'Replace'
All else are hand crafted to the situation: <p class="stuff"><span class=...
|