Mr. Dealey gets a cookie! Thanks! I never even thought about using reverse() twice...
Pete ----- Original Message ----- From: "S. Isaac Dealey" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 11:39 AM Subject: Re: How to get directory from full URL? > > I am trying to get a fully resolved directory (i.e. > > http://www.mysite.com/this/is/a/directory/) from a fully resolved URL > > (i.e. http://www.mysite.com/this/is/a/directory/and_this_is_a_file.cfm) > > that I am passing in, but I am having difficulty in finding a simple and > > elegant way to do so. > > > I looked on cflib.org and didn't find any UDF's there...does anyone have a > > solution for this? Straight code or a UDF would be great. > > If you just want to remove the file name: > > Reverse(ListRest(Reverse(fullurl),"/")) > > Or > > REReplaceNoCase(fullurl,"^(.*)/.*$","\1") > > hth > > S. Isaac Dealey > Certified Advanced ColdFusion 5 Developer > > www.turnkey.to > 954-776-0046 > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

