From: ts Date: 2001-07-13T17:44:42+09:00 Subject: [ruby-talk:17778] Re: Regex Groups in String#split (Re: Array#sort! returns nil when array empty) >>>>> "p" == pit writes: p> You can even get rid of the dubious ' - [""]' by changing the code to p> "a b c :d e f".split(/\s+:(\S.*)|\s+/) One use of '- [""]' is for pigeon% ruby -e 'p " a b c :d e f".split(/\s+:(\S.*)|\s+/)' ["", "a", "b", "c", "d e f"] pigeon% Guy Decoux