From: Harry Date: 2007-03-30T15:24:19+09:00 Subject: Re: text processing On 3/30/07, Gary Wright wrote: > > 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 > 'captures' is new to me. Thanks. Harry -- http://www.kakueki.com/ruby/list.html Japanese Ruby List Subjects in English