From: Paul Date: 2011-05-27T13:40:29+09:00 Subject: Re: Need help bringing select array lines together On May 26, 6:14 pm, 7stud wrote: > > combined_lines = [] > temp = '' > > original_lines.each do |line| >   temp << line > >   if temp[-1] == %q{"} >     combined_lines << temp >     temp = '' >   end > end > > p combined_lines > > --output:-- > ["\"Only one line.\"", "\"line 1  line 2.\""] > That code _almost_ works. I changed the one line to "temp[-1,1]" and then it worked! =) This looks exactly like what I need. Thanks! Cheers! Paul.