https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112016-04-21T00:29:03ZRuby Issue Tracking SystemRuby master - Feature #12304: String#split with a blockhttps://redmine.ruby-lang.org/issues/12304?journal_id=581762016-04-21T00:29:03Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>There are methods like String.each_char.slice_when (and friends). See <a href="http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-slice_when" class="external">http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-slice_when</a><br>
Doesn't this solve your problem? Then, can you show us a bit more details about your use case?</p>