listFirst("/level-1/2nd-level/index.cfm","/") maybe?

----- Original Message ----- 
From: "Mark Leder" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Tuesday, March 20, 2007 9:03 PM
Subject: RegEx help


I'm really not very good at this, so I'm grateful for any help.  I've been
using one of those regex editors, but I just can't seem to get my head
around the way it's used (regEx buddy).

What I want to do is take a URL string, such as
"/level-1/2nd-level/index.cfm" and just keep the string which is between the
first set of "/" ("level-1" no quotes).  How would this be written?

Thanks,

Mark






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273198
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to