From: Jeremy Henty Date: 2008-10-20T23:43:59+09:00 Subject: Re: Way to split a string based on fixed length? On 2008-10-20, Wayne Molina wrote: > Is there a ruby method I can use to split the single string into > groups of x number of characters, when there is no delimiter? irb(main):001:0> "abcdefghijklmnpqrstuvwxyz".scan /.{8}/ => ["abcdefgh", "ijklmnpq", "rstuvwxy"] irb(main):002:0> Regards, Jeremy Henty