From: sharmin malik Date: 2012-09-09T23:47:40+09:00 Subject: Re: Match an ARray Element by if Hi thanks for the technique ["test1\n"] so the array has a line carriage return but the syntax sname.map(&:strip).include? 'test1' (&:strip) looks like does not work -- Posted via http://www.ruby-forum.com/.