if its always going to be one file (i.e. not mysite.com/foo/bar.htm) then
you could use
ListFirst(CGI.SCRIPT_NAME, ".")
failing that, maybe
ListLast(ListDeleteAt(CGI.SCRIPT_NAME, ListLen(CGI.SCRIPT_NAME, "."), "."),
".")
HTH
-----Original Message-----
From: Bailey, Neal [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 17:16
To: CF-Talk
Subject: Striping URL
Hello folks...
I am trying to strip part of a url and then take part of the url string and
save it as a variable.
Example:
If I have a url like: http://www.mysite.com/bubbagump.htm
<http://www.mysite.com/bubbagump.htm>
I want to remove the ".htm" and save "bubbagump" as the variable.
Currently I have it working if the url string is
"http://www.mysite.com/bubbagump <http://www.mysite.com/bubbagump> " I save
"bubbagump" as a variable using the code below.
<cfset page = ListFirst(CGI.URL,"/")>
Somehow I need to do both whether it has .htm at the end or not and store
the remanding as the variable.
Any ideas...
Thanks,
- Neal
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Striping URL Bailey, Neal
- RE: Striping URL Tony Weeg
- Re: Striping URL Critter
- RE: Striping URL Tony Weeg
- RE: Striping URL Mike Townend
- RE: Striping URL Matt Robertson
- RE: Striping URL Jerry Johnson