From: botp Date: 2008-05-30T18:27:27+09:00 Subject: Re: split a string at tab positions On Fri, May 30, 2008 at 5:19 PM, suresh wrote: > #!/usr/bin/ruby1.9 > s = "a b" > ss = s.split('\t') > puts ss[0] > It just prints the entire line without splitting... probably your editor is converting the tab to spaces. try eg, s="a\tb" #=> "a\tb" ss=s.split "\t" #=> ["a", "b"] kind regards -botp