Re: String Manipulation help needed

2002-04-23 Thread Dave Hannum
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:

RE: String Manipulation help needed

2002-04-23 Thread Ryan Pieszak
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,

RE: String Manipulation help needed

2002-04-23 Thread Raymond Camden
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

RE: String Manipulation help needed

2002-04-23 Thread Carlisle, Eric
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

RE: String Manipulation help needed

2002-04-23 Thread Matthew R. Small
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

RE: String Manipulation help needed

2002-04-23 Thread Tim Claremont
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