I should probably have a UDF like ListRestReverse() to do that, 'cause I've
done it in a number of places... but I don't. :P There might be one on
cflib.org tho... I haven't checked.

Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

> 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_thi
>> > s_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/cf-talk@houseoffusion.com/
> Unsubscribe:
> http://www.houseoffusion.com/index.cfm?sidebar=lists



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to