From: "trans. (T. Onoma)" Date: 2004-12-28T13:09:58+09:00 Subject: rindex with regexp Using rindex with a regexp would appear to undermine greediness. irb(main):012:0> "a--b--c".rindex(/[-]+/) => 5 irb(main):013:0> p $~.begin(0) 5 => nil irb(main):014:0> p $~.end(0) 6 => nil I would expect the 5 to be a 4. T.