Alex Sweps wrote in post #1056463: > File#basename would not work as they are dated and numbered on the live > network. So? The method doesn't actually look at the file, it only operates on the filename string (like a regex would do). You can also write filename.split('/').last[/[^.]+/] -- Posted via http://www.ruby-forum.com/.