On Aug 1, 2011, at 12:37 AM, Kirill Radzikhovskyy wrote:
> I also find this behavior confusing=20
> mainly because:
>=20
> ruby-1.9.2-p290 :001 > 'a,b,,'.split ','
> =3D> ["a", "b"]=20
> ruby-1.9.2-p290 :002 > ',,a,b'.split ','
> =3D> ["", "", "a", "b"]=20

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=