Probably not the best solution, but a very quick one (to come up with, not processing time):
ListGetAt( YOUR_CONTENT, 2, """" ) Treat the content a quote-delimited list. Then the second list item is the first value. ...................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 3:38 PM To: CF-Talk Subject: SOT: Javascript regex question... I'm working on this myself, but wanted to throw it to the list in case someone knew it right off. I have a string: <option>select a make</option><option value="Honda" selected>Honda</option> The length of this string might vary, but I need to get the string inside the FIRST value="get this string". I know the starting char by doing this: str.indexOf('"'); which returns 44, so I know to start counting at 45, but how do I know to stop counting at char 50 (in this case)? So basically I need to get the FIRST occurrence of value="" and get what's between the quotes. ____________________________________ Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com <http://www.dealerskins.com/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276678 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

