I want to isolate each sentence from a .txt file with punctuation still attached. Is there anyway to do this simply? Below is a gist of what I have so far in C#. (If you use 'regex', could you explain the concept in layman terms?)
string data = System.IO.File.ReadAllText(filePath);
string[] sentences = data.Split(
new char[] { '.', '!', '?' },
StringSplitOptions.RemoveEmptyEntries);
foreach (string s in sentences)
{
Console.WriteLine(s.Trim(charsToTrim));
}