With the string parser/tokens object and rich edit i can make it count words using a space " " but if i make new line this messes up. If on a new line and you type a word it will think it's the last word still, if i add a space to the first line it then counts the word but if you also add a space before the word it adds to the count also.
Is there anyway to fix this so that if you use a new line it doesn't require to add a space to the end of the line to count the first word typed on the new line? Or a better method of word counting rather than checking if text follows the " " character?
It works fine if it's just a single line always like a edit box but it needs to be multi line (Rich Edit based) for what im doing. If anyone has any ideas/examples that would be great, thanks.
