From: ts Date: 2003-03-12T20:28:23+09:00 Subject: Re: scanning strings >>>>> "Y" == YANAGAWA Kazuhisa writes: Y> Hmm, by the way, Y> " abc def ghi ".split(/(\s+)/) Y> yields Y> ["", " ", "abc", " ", "def", " ", "ghi", " "] pigeon% ruby -e 'p " abc def ghi ".split(/(\s+)/, -1)' ["", " ", "abc", " ", "def", " ", "ghi", " ", ""] pigeon% Guy Decoux