So you are suggesting multiple passes to clear <span> tags. I like the idea.
In your example:
Quote:
<span class="calibre5">Now is the time for all <span class="italic">good men</span> to enjoy a coke.</span>
|
I could first run
Code:
<span class="italic">(((?!<span).)*?)</span>
to get the inner tags, then run
Code:
<span class="calibre5">(((?!<span).)*?)</span>
to clear the outer tags.
Great idea, I will give it a try.
I think it might take more that two passes in some cases.