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.