matchChunk question

Peter M. Brigham, MD pmbrig at gmail.com
Sun Jan 8 09:11:50 EST 2012


On Jan 7, 2012, at 4:06 PM, Mark Smith wrote:

> 
> Peter M. Brigham, MD wrote
> 
>> Any reason not to just use
>> 
>> put numtochar(8) into tempDelim
>> replace <4-char-sequence> with tempDelim in tString
>> set the itemdelimiter to tempDelim
> 
> Thanks Peter, none that I can see although I would probably write:
> 
> put quote & "v" & quote & ":" into tempDelim -- i.e. a 4 char delimiter with
> embedded quotes
> replace tempDelim with tab in tString
> set the itemdelimiter to tab
> 
> Same idea though and much easier than fussing with replacetext and regular
> expressions. I probably didn't think this would work because of the embedded
> quotes.

Same idea. I replace <whatever-char-sequence> with a character that would not be found in any text string. Your version will work as long as there are no tabs already in your text.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig






More information about the use-livecode mailing list