Converting space- to tab-delimited

James.Cass at sealedair.com James.Cass at sealedair.com
Mon Feb 28 13:29:15 CST 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).

-James






Gregory Lypny <gregory.lypny at videotron.ca>
Sent by: use-revolution-bounces at lists.runrev.com
02/28/05 01:59 PM
Please respond to How to use Revolution
 
        To:     Revolution <use-revolution at lists.runrev.com>
        cc: 
        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]

Regards,

Greg


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


More information about the use-livecode mailing list