I haven't hit the anchor one, but for the rest, I usually use
Diap's Editing Toolbag. Much easier than trying to wrap my brain around the regex.
For the last one, why do you care about matching the close tags? Just fixing the opening should be enough. So:
Code:
text: <i class="italic" style="margin:auto;padding:auto;font-size=1em;">
replace: <i[^>]+>
with: <i>
result: <i>
should work the same. Am I missing something?