R
reflex
Hi,
i have string which looks like:
"<P><SPAN style="FONT-SIZE: 12pt">asdas<SPAN style="FONT-SIZE:
10pt">jdlkasjlk<SPAN style="FONT-SIZE: 8pt">djk<b>las</b>jkldjakldj</
SPAN>klajkld</SPAN>ajkldkl</SPAN></P>"
and i have to get this one "<SPAN style="FONT-SIZE: 8pt">djk<b>las</
b>jkldjakldj</SPAN>" then remove it and take this one "<SPAN
style="FONT-SIZE: 10pt">jdlkasjlk<SPAN style="FONT-SIZE:
8pt">djk<b>las</b>jkldjakldj</SPAN>klajkld</SPAN>" and soo again
i write function:
var reGee = /(<span([^>]*)>)([^<]*)<\/span>/igm;
while(sel.match(reGee)) {
//remove match
}
but it only works when there is no element inside nested span...
i have string which looks like:
"<P><SPAN style="FONT-SIZE: 12pt">asdas<SPAN style="FONT-SIZE:
10pt">jdlkasjlk<SPAN style="FONT-SIZE: 8pt">djk<b>las</b>jkldjakldj</
SPAN>klajkld</SPAN>ajkldkl</SPAN></P>"
and i have to get this one "<SPAN style="FONT-SIZE: 8pt">djk<b>las</
b>jkldjakldj</SPAN>" then remove it and take this one "<SPAN
style="FONT-SIZE: 10pt">jdlkasjlk<SPAN style="FONT-SIZE:
8pt">djk<b>las</b>jkldjakldj</SPAN>klajkld</SPAN>" and soo again
i write function:
var reGee = /(<span([^>]*)>)([^<]*)<\/span>/igm;
while(sel.match(reGee)) {
//remove match
}
but it only works when there is no element inside nested span...