- see footer for list info -<
rereplacenocase(mystring,"<span>([^<]*?)</span>","/1","ALL")
It cleared out most of the spans, but left a few hanging around that would seem to meet these criteria. I had a quick look to see why they might not be getting picked up, but couldn't see anything immediately obvious. Wouldn't be surprised if its something to do with HTMLArea....
Just reading this thread now, I don't think any of the regexs suggested will definitely clean up all attribute free span tags. I'm pretty sure all will suffer when a set a span tags are nested somewhere inside another set. For example...
<span>This is the start of a sentence <span>and this is inside another span</span> and this is the end of the sentence</span>
I'm not sure that this can actually be solved with a single regex tbh, I've solved it before with a simple loop, e.g.
do {
html = REReplaceNoCase(mystring, "<span>([^<]*?)</span>", "\1", "all");
} while ( REFindNoCase("<span>([^<]*?)</span>",mystring) );
Mark
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
-- CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -< - Forum provided by www.fusetalk.com -< - DHTML Menus provided by www.APYCOM.com -< - Lists hosted by www.Gradwell.com -< - CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
