> 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 ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists