Sentences from words

I have a long text with multiple sentences, the user enters a word, and the application should extract the phrases from text those contain that word.

How can I do ?

Isn’t that the same with that?

yes, I fixed everything.

Then why you created same topic again?