S
Simon Strandgaard
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.
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.