Issue #1873 has been updated by Yui NARUSE.


Oh sorry, i misunderstood. I think you wanted to access "b" with /(?<a>\w)+/.match("abc").

Your proposal may be able to implement because those data is near by us. (you taught it by inspect data, sorry!)

Anyway however, changing return value from alwasy String to String or Array is difficult because of compatibility.
If you want access another matched string, suggest to add a new API to access them.
So what is the desirable API is the problem.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1873

----------------------------------------
http://redmine.ruby-lang.org