Removing unwanted comma's

Kay C Lan lan.kc.macmail at gmail.com
Mon Apr 7 22:14:56 CDT 2008


On Mon, Apr 7, 2008 at 6:35 PM, David Coker <davidocoker at gmail.com> wrote:

> Now the fun begins in
> trying things out to see what works best for the application. :)
>
> Just for reference, I thing Mark Schonewille had a little AppleScript
moment, I believe the line:

repeat for every word myWord in theData

should have been:

repeat for each word myWord in theData

Also, as far as speed is concerned Mark Smith's solution is significantly
faster.

And lastly, just so you don't get caught out: Mark Schonewille's may not
provide what you're looking for if there are spaces in your data (very
likely) and Mark Smth's won't work if you have an odd number of quotes in
your data, say a dimension 20' 5".

Ah, the joy of data parsing ;-)

HTH



More information about the use-livecode mailing list