Bill Kelly
9/28/2008 11:19:00 PM
From: "Nick Bo" <bornemann1@nku.edu>
>
> 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