c# String operations
Posted on 2008-10-15
i would like to count the number of words that i have typed:
The cat in the hat 5 words
The cat, in the hat 5 words
The cat , in the hat 5 words
in the hat 5 words
Note: Quote characters have been used to denote the start and end of the string.
a word is defined as a continuous string of the character ranges a-z, A-Z or 0-9 separated by one or more other characters e.g. a012jtU is one word, a0G1#2jtU is two words because the # is a separator.