From: Greg Brown Date: 2005-10-10T14:26:51+09:00 Subject: Re: Soma-Cube 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.