Try this,
ListFirst(http://www.foobar.com/images/screwy.gif;, /)
Dave
- Original Message -
From: Tim Claremont [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 2:59 PM
Subject: String Manipulation help needed
I have the following string:
Is it just for this string?
If so...#Left(string,21)# ...should do it.
If for any url (return everything before the third /):
then...#Left(sting,Left(/,string,8))# ...should do it.
Ryan
-Original Message-
From: Tim Claremont [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
Manipulation help needed
Try this,
ListFirst(http://www.foobar.com/images/screwy.gif;, /)
Dave
- Original Message -
From: Tim Claremont [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 2:59 PM
Subject: String Manipulation help needed
I have
cfset url = http://www.foobar.com/images/screwy.gif;
cfset myURL = listGetAt(url,1,'/') // listGetAt(url,2,'/')
cfoutput#myURL#/cfoutput
This code will do it. You can use the / as list delimiters, in which
you're just grabbing the first two items in the list into a variable.
Keep in mind
Or you could just use the CGI structure to grab info about the host
name.
I think the one you want is cgi.http_host.
- Matt Small
-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:14 PM
To: CF-Talk
Subject: Re: String Manipulation help
Thanks Ray, that one did the trick. I won't even tell ya what I was
trying to use...
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:21 PM
To: CF-Talk
Subject: RE: String Manipulation help needed
No - that will return http
6 matches
Mail list logo