I am trying to extract the words between two phrases. For example assuming I have the following paragraph:
One day after they had made porridge for their breakfast they walked out into the wood while the porridge was cooling And while they were walking a little girl came into the house This little girl had golden curls that tumbled down her back to her waist and everyone called her by Goldilocks.
I would like to get all the words between porridge for and golden curls as well as 2 words before and after these words.
Is there an easy way to do so? I was getting the index of the start of phrases but it lead to quite lengthy code