From: Rob Biedenharn Date: 2010-09-10T08:28:42+09:00 Subject: Re: regex help please? On Sep 9, 2010, at 4:55 PM, Joe Pizzanley wrote: > sometimes I end up with 2 of the same thing, how would I remove the > duplicate? > > >> => " pens 1234-001\n pencils 1234-002\n >> scissors 2345-447\n pencils 1234-002\n" > -- > Posted via http://www.ruby-forum.com/. > irb> ["a", "b", "c", "a", "d", "c"].uniq => ["a", "b", "c", "d"] -Rob Rob Biedenharn Rob@AgileConsultingLLC.com http://AgileConsultingLLC.com/ rab@GaslightSoftware.com http://GaslightSoftware.com/