I need to read through a document to look for the occurrences of the word "apple". Once "apple" is found, I need to return the entire paragraph that contains this word. Is there a way to do this in C#? Can this be done at all?
Sure, returning the sentence that contains "apple" is fairly straight-forward, but I am not sure of what needs to be done in order to retrieve an entire paragraph. Do paragraphs have identifiable delimiters that I can use along with a regular expression?
To reiterate:
- An entire PDF document needs to be analyzed.
- When the word "apple" is found, return the paragraph that contains it.
- do this for each occurrence of the word "apple".