Alex Young wrote: > Mister Twister wrote: >> > irb(main):005:0> "some long long long string".scan(/.{1,3}/) > => ["som", "e l", "ong", " lo", "ng ", "lon", "g s", "tri", "ng"] > > Like that? If not, you'll need to give an example of the output you're > trying to achieve (which is generally a good idea anyway...). Exactly like that :) Thank you ;) -- Posted via http://www.ruby-forum.com/.