From: ts Date: 2001-07-13T01:29:22+09:00 Subject: [ruby-talk:17739] Re: Array#sort! returns nil when array empty >>>>> "P" == Paul Brannan writes: P> This function takes a string of the form "a b c :d e f" and converts it to P> an array ["a", "b", "c", "d e f"]. pigeon% ruby -e 'p ("a b c :d e f".split(/:(\S.*)|\s+/) - [""])' ["a", "b", "c", "d e f"] pigeon% but verify it :-) Guy Decoux