View Single Post
Old 04-02-2014, 02:52 PM   #589
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by eschwartz View Post
I just noticed -- and fixed -- that.

Just don't close the span tag (in the negative lookahead), we don't need that to match anyway.
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="koboxxx">content</span>
...regardless of whether the content itself has SPANs, and allowing for the specific ID value to vary.
Rev. Bob is offline   Reply With Quote