From: Luis Lavena Date: 2010-03-04T22:35:19+09:00 Subject: Re: splitting On Mar 4, 1:00 pm, DMG wrote: > Hi, > > I suppose that: > ".".split(".") > will give me array with two empty strings instead of empty array. > > How can I do that? There is nothing before or after the period. irb(main):001:0> " . ".split('.') => [" ", " "] irb(main):002:0> ".".split('.') => [] -- Luis Lavena