I've got a book file full of code like :
Code:
<p class="calibre2"><span class="none2">blah blah blah</span></p>
Is there a way I can remove these spans, (the "none2" ones) to get
Code:
<p class="calibre2">blah blah blah</p>
without messing up any other spans?
I can remove the opening by simple s&r, but then I would have orphaned </span>, but could not just delete </span> without screwing up other spans.
I could change "<span class="none2">" to "<span>" and neuter them, but I really hate to leave junk code in the file.
-- PS, I know what regex are,and have written some simple ones, but parsing HTML is a bit hairy.