title: Match multiple values in a regex string
body: <p>I am trying to capture one or more variables in a string, not just the first value found.  I created a test regex</p>
  
  <pre><code>color.*?(?&lt;COLOR&gt;(red|blue|black)).*?.
  </code></pre>
  
  <p>and test sentence</p>
  
  <pre><code>favorite colors are red, blue and black.  Mr. Green
  </code></pre>
  
  <p>which can be seen here  <a href="http://regex101.com/r/vV7bP3/2" rel="nofollow">http://regex101.com/r/vV7bP3/2</a></p>
  
  <p>My goal is to get a match for each of red, blue an black AND not for Green which comes after the period. In other words looking for a match for all colors in a sentence with the word 'color' but only up to the next period (I understand this is a two-part question I thought it was easier than posting twice.</p>