Converting space- to tab-delimited

Ken Ray kray at
Mon Feb 28 14:23:36 EST 2005

On 2/28/05 12:59 PM, "Gregory Lypny" <gregory.lypny at> wrote:

> Hello everyone,
> I would greatly appreciated your help with choosing the regular
> expression I need to use in replaceText in order to convert a text file
> from space delimited to tab delimited when the number of spaces between
> words is not constant.
> Here's an example of one line of input data.
> word1 [3 spaces] word2 [5 spaces] word3 [2 spaces] cr
> I'd like to convert that to
> word1 [tab] word2 [tab] word3 [tab]

here's the regex:

put replaceText(tData," *",tab) into tData

(that's a space before the asterisk, btw)


Ken Ray
Sons of Thunder Software
Web site:
Email: kray at

More information about the use-livecode mailing list