Converting space- to tab-delimited

James.Cass at James.Cass at
Mon Feb 28 14:29:15 EST 2005

Here is yet another version:

put replaceText(tText, "\s+", tab) into tText

I got help for this from the archives by doing a search on "replacetext 
regex" (without the quotes).


Gregory Lypny <gregory.lypny at>
Sent by: use-revolution-bounces at
02/28/05 01:59 PM
Please respond to How to use Revolution
        To:     Revolution <use-revolution at>
        Subject:        Converting space- to tab-delimited

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]



use-revolution mailing list
use-revolution at

More information about the Use-livecode mailing list