Regex Pattern for checking the first letter of each word in a string if its Uppercase in Javascript
<p>for example my string is <strong>Foo Bar.</strong>
this string should match the pattern.</p>

<p>if the string is <strong>Foo bar.</strong>
the string should not match.</p>

<p>if the string is <strong>Foo Bar Foobar</strong> 
the string should match</p>

<p>if the string is <strong>Foo.</strong> it should also match.</p>

<p>so far I only have this pattern </p>

<pre><code> (^[A-Z]{1}.*(\s)?$)+
</code></pre>

<p>Basically I will only accept a string where each First letter of each word is Uppercase</p>