From: brabuhr@... Date: 2008-09-29T07:53:43+09:00 Subject: Re: Counting Tabs and splitting by that number On Sun, Sep 28, 2008 at 5:52 PM, Nick Bo wrote: > #THIS IS WHERE MY ISSUE IS NOW > mimeKey[i], mimeValue[i] = string.split("\t\t\t") > > My problem now that sometimes teh document is split by tabs changing in > number one line may have 3 tabs other may have 5 and one might just have > just 1. > > mimeKey[i], mimeValue[i] = string.split(#{tabCount}*("\t")) > > I know there is alot in my message so here is a summary: > > HOW TO COUNT \t IN A STRING THEN SPLIT BY THAT NUMBER OF \t Your tabs are consecutive and you don't actually care how many there are? string.split(/\t+/) ?