title: Regular expression to get words that begin with a capital letter
body: <p>I have a text file that is like 2 pages long and I need to write a regular expression that will extract words that begin with a capital letter.
  Some examples of words that I would like to get (but not limited to these) are:</p>
  
  <pre><code>British Indian Ocean Territory
  People's Republic of China Confederation of Independent States
  French Southern and Antarctic Lands
  Gilbert and Ellia Islands
  Iraq-Saudia Arabia Neutral Zone
  Juan de Nova Island 
  St. Vincent and the Grenadines 
  Trust Territory of the Pacific 
  Washington, D.C.
  </code></pre>
  
  <p>The regex that I came up with is:</p>
  
  <pre><code>"((?:[A-Z][a-z]+\\s){2,4}?) || ((?:[A-Z][a-z]+\\s){1,2}of(?:\\s[A-Z][a-z]+){1,2}) || ((?:[A-Z][a-z]+\\s){1,2}and(?:\\s[A-Z][a-z]+){1,2})"
  </code></pre>