I like Gareth solution better than mine. ListFirst is way more straight
forward than a RegExp. 

......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Gareth Hughes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 5:07 PM
To: CF-Talk
Subject: Re: RegEx help

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








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:273200
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to