View Single Post
Old 07-27-2014, 09:41 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Find:
Code:
<span class="none2">((?:(?!<span).)*?)</span>
Replace:
Code:
\1
Using a negative lookahead we search for the LACK of a nested span, followed by any character, then repeat.

Matches nested tags as long as only the outer tag is a span. But you can be more specific if you want, by changing the lookahead.

http://regular-expressions.info/completelines.html

Last edited by eschwartz; 07-27-2014 at 09:50 AM.
eschwartz is offline   Reply With Quote