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 <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02/28/05 01:59 PM
Please respond to How to use Revolution
 
        To:     Revolution <[email protected]>
        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
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to