From: Bill Kelly Date: 2008-09-29T08:18:35+09:00 Subject: Re: Counting Tabs and splitting by that number From: "Nick Bo" > > eg = "abcdefg \t\t\t\t\t hi" > eg.split("\t) --> ["abcdefg ", "", "", "", " i" > eg.split("/\t+/) just gives me ["abcdefg \t\t\t\t\t i"] cause it dont > matche the pattern given to the split at all so it makes whole thing > part of the array. Huh? >> eg = "abcdefg \t\t\t\t\t hi" => "abcdefg \t\t\t\t\t hi" >> eg.split(/\t+/) => ["abcdefg ", " hi"] Regards, Bill