>- see footer for list info -<
<cfscript>
myString = 'afagag ag g agadg <option value="xyz">some text
here</option> saljsgkhsdgg';
getOption =
reFind("<[Oo][Pp][Tt][Ii][Oo][Nn].*?>[^<]*</[Oo][Pp][Tt][Ii][Oo][Nn]>",
myString, 1, "TRUE");
thisOption = mid(myString, getOption.pos[1], getOption.len[1]);
finalString = reReplace(thisOption,
"<[Oo][Pp][Tt][Ii][Oo][Nn].*?>|</[Oo][Pp][Tt][Ii][Oo][Nn]>", "",
"ALL");
writeOutput(finalString);
</cfscript>
On 10/13/05, Stephen Moretti <[EMAIL PROTECTED]> wrote:
> >- see footer for list info -<
> Fairly simple regex, just my brain ain't working right this week...
>
> This is my string.
>
> <option value="xyz">some text here</option>
>
> I need to get "some text here" and the value out of there and into 2
> variables or an array or struct or whatever. The option tags could be
> in multiple cases, so "<OpTiOn VALUe=" is possible. Also, there may or
> may not be a value attribute.
>
> Suggestions welcomed.
>
> Stephen
> _______________________________________________
>
> 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 -<
>
--
Simon Baynes
www.simonbaynes.com
_______________________________________________
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 -<