title: Regex for finding groups in One FishTwo FishRed FishBlue Fish
body: <p>I'm trying to gather the groups of words in a string. The string might be names, but using this familiar text as my example:</p>
  
  <p>One FishTwo FishRed FishBlue Fish</p>
  
  <p>the goal is to find groups of capitalized phrases: (One Fish) (Two Fish) (Red Fish) (Blue Fish), where each group is in parentheses. </p>
  
  <pre><code>(\w+\s[A-Z]\w+)
  </code></pre>
  
  <p>this will find this group: (One FishTwo) FishRed FishBlue Fish </p>
  
  <p>How do I capture each set of capitalized words?</p>