From: Gary Wright Date: 2007-03-30T14:49:52+09:00 Subject: Re: text processing On Mar 30, 2007, at 1:25 AM, Harry wrote: > x =~ /(...)(.)(....)/ #grabs 3 characters, then 1, then 4 > mydata << $1 + "," + $2 + "," + $3 + "\n" mydata << /(...)(.)(....)/.match(x).captures.join(',') << "\n" Gary Wright