From: Nobuyoshi Nakada Date: 2009-03-24T15:32:46+09:00 Subject: [ruby-core:23010] Re: [Bug #1312] String#rindex(Regexp, offset) doesn't seem to match greedily Hi, At Tue, 24 Mar 2009 15:16:12 +0900, David Ellis wrote in [ruby-core:23009]: > I may be wrong but I was expecting: > "abcdefg ".rindex(/\w+/,10) > to return 0. Wrong expectation. String#rindex returns the rightmost position can match. -- Nobu Nakada