Converting space- to tab-delimited
Ken Ray
kray at sonsothunder.com
Mon Feb 28 14:23:36 EST 2005
On 2/28/05 12:59 PM, "Gregory Lypny" <gregory.lypny at videotron.ca> 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)
HTH,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list