Hello, I have a programmin dilemma. Are there any tools out there that will allow me to be able to count the number of words in a string with no spaces or other separators? In other words lets say I have the string "mynameisnotyourbusiness" - the total number of words in that string is 6 (six).
One solution I can think of is to have a database with every (or most of) the english words and search for those substrings in the main string and somehow program the script to not return 2 (two) for example in the string office (of, office) and return just one (1).
Has anyone ever heard about stuff like this being done? Its a programming assignment at school and just not sure how else to approach it.
Of course lets assume that the string will be in the english language.
Any thoughts from anyone would be greatly appreciated!
Thanks!