I have the text from a PDF document available to me, and I want to display snippets from the text everywhere the user-entered search phrase appears. Say the search term is"iphone", I want to display 200 characters around each iphone word instance in the document. Ideally, the snippet should also start from the beginning of a sentence.
What's the most efficient way to do this using .NET/C#?