From: Andrew Stewart Date: 2007-03-30T23:14:06+09:00 Subject: Re: text processing On 30 Mar 2007, at 12:59, James Edward Gray II wrote: > Here's another option: > > >> xs, ys, zs = "XXXYYYYYZZ".unpack("A3A5A2") > => ["XXX", "YYYYY", "ZZ"] > >> xs > => "XXX" > >> ys > => "YYYYY" > >> zs > => "ZZ" I like the way your mind works. Nice! Regards, Andy Stewart