Here's a function to count the words disregarding quotes. Note that it's
important to replace quotes with space, because there are three words in

    this is"three words"

and there are three words in

    this isthree words

but you want to count four words, which this will do:

function wordsWithoutQuotes S
   replace quote with space in S
   return the number of words in S
end wordsWithoutQuotes
_______________________________________________
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

Reply via email to