Oh whoops. Didn't realize you were in javascript.
...................... 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:57 PM To: CF-Talk Subject: RE: Javascript regex question... Found it. In case anyone's interested. This is what I came up with: str = '<option>select a make</option><option value="Honda" selected>Honda</option><option value="Acura">Acura</option>'; re = /value="(\w+)"/i; found = str.match(re); alert(found): returns value="Honda",Honda alert(found[1]): returns Honda ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276686 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

