------ art_33990_22679445.1128923012693 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may want to add a .flatten on the end of that, otherwise if you have multiple lines of input, you will get an array containing an array for each line. Mark On 10/10/05, Greg Brown <greg7224 / gmail.com> wrote: > > > Michael Daines wrote: > > Or: > > > > your_input.split.map {|line| line.split('/')[1..-1] } > > > > Yeah, this is probably what you're looking for. A quick explanation of > whats going on is the input is being split by line, and then 'mapped' > so that each line becomes an array split by the /'s and the [1..-1] > gives you everything except for the first empty string on the left side > of your first / > > so this should give you your two dimensional array. > > > -- Mark Van Holstyn mvette13 / gmail.com http://lotswholetime.com ------ art_33990_22679445.1128923012693--