On Fri, Oct 7, 2011 at 8:59 PM, skolo pen <skolopen / yahoo.com> 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.

What exactly do you mean?  Do you want to select all elements in the
Array which match?  Or do you want to find the first that matches?  Or
do you want to convert all elements in the Array to their matches?

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/