From: aidy Date: 2006-08-17T23:20:13+09:00 Subject: Re: Array Comparison Hi All, Thanks for the feedback, but I need to be bothered about order, so I have decided to use an iterator t = $ie.table(:index, '2').to_a.flatten t.each {|a| p "table #{a}" p "line #{line}" if /line/ =~ a; p 'match' else; p 'not match'; end } however I can not match the two objects, when the ouput shows "table HINCKLEY" "line HINCKLEY " "not match" "table HINTON ST GEORGE" "line HINTON ST GEORGE" cheers aidy ps I thought it was initially the trailing whitespace; that is why I have RegEx'ed the var 'line'.