From: "Carina C. Zona" Date: 2011-10-08T04:38:28+09:00 Subject: Re: regex an array? ["user created TI: TI-0001"][0] =~ /.{7}$/ matched=$& On Fri, Oct 7, 2011 at 11:59 AM, skolo pen wrote: > I am having troubles trying to regex the following array to only include > the last word > > ["user created TI: TI-0001"] > > I am trying to regex or gsub so only TI-0001 returns. > > -- > Posted via http://www.ruby-forum.com/. > > --   Carina