From: Gary Wright Date: 2011-08-01T14:08:14+09:00 Subject: [ruby-core:38645] Re: [Ruby 1.9 - Feature #5120] String#split needs to be logical On Aug 1, 2011, at 12:37 AM, Kirill Radzikhovskyy wrote: > I also find this behavior confusing > mainly because: > > ruby-1.9.2-p290 :001 > 'a,b,,'.split ',' > => ["a", "b"] > ruby-1.9.2-p290 :002 > ',,a,b'.split ',' > => ["", "", "a", "b"] As I mentioned in an earlier message, trailing empty fields are discarded when split is called with a single argument. This behavior is described in the standard documentation. Gary Wright