Re: Strip file from URL



On Sat, 26 Nov 2005 13:05:05 -0800, Jamie
<jamie_5_not_valid_after_5_Please@xxxxxxxxxxx> staggered into the
room, obviously drunk, and said:

>here's a little hack that may work for you.
>Function GetUrlEndTrail(Url:String):String;
> Var
> X:integer;
> Begin
> Result := '';
> X:= length(URL);
> While (X <> 0)and(URL[X] <> '/') do dec(X);
> If X <> 0 then
> Result:= Copy(Url, X+1, Lenght(URL)-X);
> End;
>
> P.S.
> it also maybe of interest that some links mite
>be sending you the %20% in the link which is a
>way to send spaces or control characters.
> in the above %20% is a space in HEX notation.
> just something for you to look for.

Jamie,

Thank you VERY much for this. It helps TONS and works perfectly.

Thank you again!

-- Ryan
.