View Single Post
Old 06-03-2015, 08:44 PM   #12
Thom*
The Fumbler
Thom* began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
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.
Thom* is offline   Reply With Quote