I want to divide a text into sentences. A sentence ends with (dot) or ? or ! followed by one or more whitespace characters followed and the next sentence starts with an uppe
Try this (MSDN)
char[] separators = new char[] {'!', '.', '?'}; string[] sentences1 = "First sentence. Second sentence!".Split(separators); //or... string[] sentences2 = "First sentence. Second sentence!".Split('!', '.', '?');