I need to Extract paragraphs containing a particular word from a group of paragraph having all paragraphs with same start and end
for example: In the below text, all the paragraphs' first line starts with "{" and last line starts with "}", Now I want to extract only those paragraphs which contains "1997"
{
"url": "http://www.nytimes.com/1997/01/01/world.html",
"id": "4fd20cf08eb7c8105d77c720",
"paragraphs": []
},
{
"url": "http://www.nytimes.com/1990/01/01/books.html",
"id": "4fd20cf08eb7c810",
"paragraphs": []
},
{
"url": "http://www.nytimes.com/1997/10/12/arts.html",
"id": "4fd20cf08eb7c810",
"paragraphs": []
}
How can I do it using a regular expression?