>>>>> "S" == Simon Strandgaard <neoneye / adslhome.dk> writes: S> irb(main):002:0> "abcde".split(/./) S> => [] S> Why is the second result empty? svg% ri String#split ----------------------------------------------------------- String#split str.split(pattern=$;, [limit]) => anArray ------------------------------------------------------------------------ [...] If the _limit_ parameter is omitted, trailing null fields are ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^n supressed. If _limit_ is a positive number, at most that number of ^^^^^^^^^ fields will be returned (if _limit_ is +1+, the entire string is returned as the only entry in an array). If negative, there is no limit to the number of fields returned, and trailing null fields are not supressed. [...] svg% you have only null fields in the result Guy Decoux