From: Mohit Sindhwani Date: 2008-06-03T01:28:31+09:00 Subject: Re: split a string at tab positions Stefan Kraemer wrote: > Hi, > >> ss = s.split('\t') > > Regexes take the form /.../ (see > http://www.ruby-doc.org/core/classes/Regexp.html) > > "a b c".split(/\t/) # tabs between the letters! > > does what you want. > > > So long ... Stefan > > I think his piece of code also works - in my mind, the problem is the single quotes surrounding the \t. I've just got done with processing lots of delimited data and went through the same frustration. ',' would work but '\t' wouldn't! :) Cheers, Mohit. 6/3/2008 | 12:26 AM.