problem with counting words

Jerry Jensen jhj at jhj.com
Sun Oct 12 23:42:46 EDT 2014


On Oct 12, 2014, at 7:51 PM, J. Landman Gay <jacque at hyperactivesw.com> wrote:

> I think I'd just make a copy of the text in a variable, delete all the quotes, and count the words. After you get the count, discard the variable. You don't need to reconstruct it.

Oh, how very sensible! I retract all my comments fumbling around with curly-quotes and replacing quotes. You might also want to replace tabs and returns with spaces before counting. Punctuation too if you want. Jacque has a lovely talent for seeing simple solutions. I have an unfortunate obsession with saving bytes from ye olden days.
.Jerry





More information about the use-livecode mailing list