From: "Pål Bergström" Date: 2008-08-20T23:07:52+09:00 Subject: Re: Cut a string if length > n Mark Thomas wrote: > How about: > > s[0..70].gsub(/\s?\S*$/,'') I'll try it. -- Posted via http://www.ruby-forum.com/.