I want to capitalize the first letter of each sentence in a string. I have a string, ex. "hello, how are you? i'm fine, you? i'm good. nice weather!"
and I want to capitalize the first letter of each sentence in it. So, "Hello, how are you? I'm fine, you?" etc.
EDIT: So far, I've just tried
public static string FirstCharToUpper(string input)
{
if (String.IsNullOrEmpty(input))
throw new ArgumentException("ARGH!");
return input.First().ToString().ToUpper() + input.Substring(1);
}
but this capitalizes the first letter in each word, not sentence :/