title: Splitting a string and adding to list using Regex and C#
body: <p>I have a string where the number of words might vary. Like:</p>
  
  <pre><code>string a_string = " one two three four five six seven etc etc etc "; 
  </code></pre>
  
  <p>How do I split the string into 5 words each, and each of those are added it to a list, such that it becomes a list of string (with each string containing 5 words). I think list would be better because number of words in string can vary, so list can grow or shrink accordingly.</p>
  
  <p>I tried using Regex to get first 5 words through below line of code:</p>
  
  <p><code>Regex.Match(rawMessage, @"(\w+\s+){5}").ToString().Trim();</code> </p>
  
  <p>but bit unsure on how to proceed further and add to list dynamically and robustly. I guess Regex can further help, or some awesome string/list function? Can you please guide me a bit? </p>
  
  <p>Eventually, I would want list[0] to contain "one two three four five" and list[1] to contain "six seven etc etc etc", and so on.. Thanks.    </p>