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