Quote:
Originally Posted by Rev. Bob
The problem is, your regex still isn't doing what it would need to do. The challenge is to remove a specific set of SPANs, namely those matching the form
Code:
<span class="koboSpan" id="kobo.2.1">content</span>
...regardless of whether the content itself has SPANs.
|
Since I don't have a Kobo, I was merely suggesting general methods of hunting spans.
Quote:
Originally Posted by eschwartz
Final regex:
Code:
<span[^<>]*>((?:(?!<(?:span|/span)).)*)</span>
|
Can be edited to fill in any required classes/ids with ease

:
Code:
<span{ kobo-specific info goes here}[^<>]*>((?:(?!<(?:span|/span)).)*)</span>