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 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 the following string:

http://www.foobar.com/images/screwy.gif

I want to return everything before the third /

In other words, I want to retrieve the following:

http://www.foobar.com


I am sure there is a simple string function. What am I missing?

T



______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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

Reply via email to