Subject: [bug] String#split wipes result
From: Simon Strandgaard <neoneye@ s o . >
Date: Mon, 31 May 2004 17:25:28 +0900
Another delicate problem.
irb(main):001:0> "abcde".split(/../)
=> ["", "", "e"]
irb(main):002:0> "abcde".split(/./)
=> []
Why is the second result empty?
I would have expected to see some empty strings.
--
Simon Strandgaard