From: Heesob Park Date: 2011-01-28T12:03:27+09:00 Subject: [ruby-core:34926] [Ruby 1.9-Feature#4335][Open] String#split for empty string is always empty array Feature #4335: String#split for empty string is always empty array http://redmine.ruby-lang.org/issues/show/4335 Author: Heesob Park Status: Open, Priority: Normal Category: core, Target version: 1.9.x Here is ruby's behavior: C:\work>irb irb(main):001:0> ' '.split('/') => [" "] irb(main):002:0> ''.split('/') => [] irb(main):003:0> '/'.split('/') => [] Here is python's behavior: Python 2.4.3 (#1, Jun 11 2009, 14:09:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> ' '.split('/') [' '] >>> ''.split('/') [''] >>> '/'.split('/') ['', ''] Is there any chance of ''.split('/') returns [''] instead of []? ---------------------------------------- http://redmine.ruby-lang.org