On Sep 9, 2011, at 8:33 PM, I wrote: > The filter with "end*" will pick up "end if" and "end repeat" and "end try" > as well. > -- first: > replace "end if" with empty in tList > replace "end repeat" with empty in tList > replace "end try" with empty in tList > -- then > filter tList with "end*" > replace cr & "end " with cr in tList
I forgot: you have to append a cr to the beginning of tList first: filter tList with "end*" replace cr & "end " with cr in (cr &tList) -- will catch first line delete char 1 of tList -- it's a cr -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode