From: Ilyas Date: 2006-05-26T03:07:28+09:00 Subject: How I can get name of file? I have this is string: /adfsd/dfsdf/funny-videos---gay-fight.mpeg and I have this code: @original_file_path = file_path name = @original_file_path.match(/\/[a-zA-Z0-9_-]+\./) if name puts name.values_at(0) end Result of code is /funny-videos---gay-fight. I want to get it: funny-videos---gay-fight how I can get name of file? -- Posted via http://www.ruby-forum.com/.