So, I have used read text from the file (word) and have an output as a string. Now, I want to obtain match a word in this string. If it matches, I want to capture the whole paragraph. Is there a way to do this?
Example - Below mentioned is a paragraph -
Mr Kilicdaroglu, who has walked around 20km a day for the past three weeks, condemns the coup attempt but says the purges and emergency rule by Mr Erdogan constitute a “second coup”.
He told crowds at the rally: "We marched for justice, we marched for the rights of the oppressed. We marched for the MPs in jail. We marched for the arrested journalists.
“We marched for the university academics dismissed from their jobs. We marched because the judiciary is under a political monopoly.”
And I want to check if this has word - journalists. If it does, I want to capture the whole of the paragrapth.