Old: string.grep(/re/) New: string =~ /re/
On Apr 19, 6:00 pm, Loren <[email protected]> wrote: > Hi, > > I am new to ruby and to programming in general. > I am learning from an outdated book and just realized that the .grip > method can no longer be used on strings since ruby 1.9. > > My question is could you please recommend an alternative method that I > could use instead of grep and works on strings? > > Sincerely, > > Lorant -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

