StringTokenizer tokenizer = new StringTokenizer(s, " ,.:;?![]'");
Is there a way to also retrieve the delimiter, in this case all thee punctuation marks?
For example, "This is a test, and is that a test too?"
I want the result of tokenization also includes the two tokens , and ?
Is that possible?