From: Kyle Schmitt Date: 2008-05-02T00:17:38+09:00 Subject: Re: splitting with a regex & keeping a ref? 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..>"]]