From: Mateusz Tybura Date: 2008-03-26T02:12:06+09:00 Subject: Re: remove regex matched line question ------=_Part_7502_25009938.1206465135811 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline If you want to show one element in one line try it: a.each {|s| puts s} If you want to take # from text use String#delete 2008/3/25, Ikuta Lin : > > Mateusz Tybura wrote: > > Try to use String#chop or String#chomp > > > > 2008/3/25, Ikuta Lin : > > > still has problem:( > ------------ > code > > src=src.collect do |e| > e.chop > e.chomp > end > ----------- > output > > ["#/etc/shadow ", "/etc/group "] > ~~~~~~~~~~~~~~~~~ > > -- > > Posted via http://www.ruby-forum.com/. > > ------=_Part_7502_25009938.1206465135811--