View Single Post
Old 04-16-2014, 02:42 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,021
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Question regex behaving greedier?

I try to remove unwanted "span's" of the form:
Code:
<span class="font1 font2 something">interesting text</span>
and used to use the following regex in find:
Code:
find: <span(.*)>(.*)</span>
replace: \2
However, this no longer works as now *everything* is found up to the terminating <p><crlf> or until a second terminating </span> when this is found earlier just before the terminating <p><crlf>.

It seems that regex behaves now greedier (while dotall is *not* enabled) then before. What am I missing?
DrChiper is offline   Reply With Quote