title: Regex to find N (specified number) words before and after a specific word
body: <p>Can someone help me doing following search using <code>Regex</code> in C#</p>
  
  <p>I need a regex that will give me specific number of words before and after a specific word that will include the search word itself. Please note I want to be able to specify how many words before and after I want. If the search word is in the start of the text then it returns just the N number of words after the search word and vice-versa if the search word is in the end of the text. Also the search should be able to provide multiple matches from the text that I can process.</p>
  
  <p><strong>For instance</strong> I want to get "2" words around the search word "example" so that will return multiple results in following the multiline text.</p>
  
  <p>"example one in this lesson is an example summary that we are using as an example.
  How many words are in this example? We only want the first few examples."</p>
  
  <p><strong>Returns following results</strong></p>
  
  <p>"example one in" <strong>(note how first search has no first 2 words)</strong></p>
  
  <p>"is an example summary that"</p>
  
  <p>"as an example. How many"</p>
  
  <p>"in this example? We only"</p>
  
  <p>Thanks.</p>