Extracting words from a sentence.
Given a string that represents a sentence, is there a quick way of extracting
the words that make up the sentence? For example, given a string "See ****
run." it would return an array of strings {"See","****","run"} One catch is
that it has to be locale sensitive.
I thought about just removing all the punctuation, but that leaves problems
like the word "don't". I don't want to end up with two words, "don" and "t".
|