>- see footer for list info -< ONe change I'd make to Simon's is use the "nocase" functions so you don't have to do all that case stuff manually.
http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/functions-pt263.htm#1111121 http://tinyurl.com/d93bq And I just stuck everything in a structure so you could output it easily. Note that Simon's method only gets the first one. <cfscript> x = structnew(); x.myString = 'afagag ag g agadg <option value="xyz">some text here</option> saljsgkhsdgg'; x.getOption = reFindNoCase("<option.*?>[^<]*</option>", x.myString, 1, "TRUE"); x.thisOption = mid(x.myString, x.getOption.pos[1], x.getOption.len[1]); x.finalString = reReplaceNoCase(x.thisOption, "<option.*?>|</option>", "", "ALL"); </cfscript> <cfdump var=#x# > _______________________________________________ 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 -<
