From: "phluid61 (Matthew Kerwin)" Date: 2013-11-19T19:44:07+09:00 Subject: [ruby-core:58425] [ruby-trunk - Feature #9116] String#rsplit missing Issue #9116 has been updated by phluid61 (Matthew Kerwin). =begin alexeymuranov (Alexey Muranov) wrote: > > It is not only when (({limit})) parameter is given: > > "aaa".split("aa") # => ["", "a"] > "aaa".rsplit("aa") # => ["a", ""] Ah, I see. Thank you. > Maybe with a regex there can be a more meaningful example. I'm interested to see how it would be achieved with regex, from an implementation point of view. =end ---------------------------------------- Feature #9116: String#rsplit missing https://bugs.ruby-lang.org/issues/9116#change-43020 Author: artagnon (Ramkumar Ramachandra) Status: Open Priority: Normal Assignee: Category: lib Target version: There's nothing corresponding to Python's rsplit(). A quick glance at rb_str_split_m() tells me that it should be pretty trivial to implement. Is there any specific reason it hasn't already been done? -- http://bugs.ruby-lang.org/