From: "RĂ¼diger Bahns" Date: 2009-08-06T22:20:10+09:00 Subject: Re: Trimming some string using ruby Bertram Scharpf schrieb: > As the file size will vary in width and the file names could > contain spaces this will be a little bit safer: > > l = "-rw-rw-r-- 1 user user 12238 Aug 6 01:02 app3.sql" > filename = (l.split nil, 6).last[ 13..-1] > > Bertram Why not just filename = (l.split nil, 9)[-1] ? R.