regular expression for title case - Python
<p>I need to find a combination of 2 consecutive title case words. </p>

<p>This is my code so far,</p>

<pre><code>text='Hi my name is Moh Shai and This Is a Python Code with Regex and Needs Some Expertise'

rex=r'[A-Z][a-z]+\s+[A-Z][a-z]+'

re.findall(rex,text)
</code></pre>

<p>This gives me,</p>

<pre><code>['Moh Shai', 'This Is', 'Python Code', 'Needs Some']
</code></pre>

<p>However, I need all the combinations. Something like,</p>

<pre><code>['Moh Shai', 'This Is', 'Python Code', 'Needs Some','Some Expertise']
</code></pre>

<p>Can someone please help?</p>