I have a string which basically contains a paragraph. There might be line breaks. Now I would want to get only the 1st sentence in the string. I thought I would try
indexOf(". ")
that is a dot with a space.
The problem is that this won't work though on a line such as firstName. LastName
.
I'm using .Net. Is there a good method available to achieve this? Im also tagging Java to see if I can narrow down my search.