From: Sam Fent Date: 2009-01-05T03:59:06+09:00 Subject: Re: Finding filename from a URL Jan-Erik R. wrote: > Sam Fent schrieb: >> >> Sam > File.basename("http://www.example.com/x/y/z/myfile.txt") > works perfectly for urls ;) Thanks a lot! I added ".txt" to the arguments of File.basename to get rid of the filetype, but besides that, that was what I was looking for. Thanks! -- Posted via http://www.ruby-forum.com/.