From: Kyle Schmitt Date: 2008-05-02T00:44:29+09:00 Subject: Re: splitting with a regex & keeping a ref? David, re-reading your sig, and that page, I've got to apologize, you already knew that stuff in spades I'm sure! :) What part doesn't quite make sense? On Thu, May 1, 2008 at 10:17 AM, Kyle Schmitt wrote: > Ohh right, desired sample output. > > What I'd really like, is to split the string, and either stuff it > straight into a hash at the same time, or, more realistically since > it's splitting, array tuples. > So... > > sample.data.split(){magic happens here} > =>{"[shop]"=>"\ncomment = shared directory for the shop\npath..>"} > > or > sample.data.split(){magick happens here} > =>[["[shop]","\ncomment = shared directory for the shop\npath..>"]] > >