From: Ryan Davis Date: 2011-11-24T04:32:17+09:00 Subject: Re: need help with gsub a string On Nov 23, 2011, at 10:14, Hassan Schroeder wrote: > Or on the off chance there might be additional slashes in there -- > >> s.split('/').last.strip File.basename(s).strip