Parse 4th capital letter of line in Python?
<p>How can I parse lines of text from the 4th occurrence of a capital letter onward? For example given the lines:</p>

<pre><code>adsgasdlkgasYasdgjaUUalsdkjgaZsdalkjgalsdkjTlaksdjfgasdkgj
oiwuewHsajlkjfasNasldjgalskjgasdIasdllksjdgaPlsdakjfsldgjQ
</code></pre>

<p>I would like to capture:</p>

<pre><code>`ZsdalkjgalsdkjTlaksdjfgasdkgj`
`PlsdakjfsldgjQ`
</code></pre>

<p>I'm sure there is probably a better way than regular expressions, but I was attempted to do a non-greedy match; something like this:</p>

<pre><code>match = re.search(r'[A-Z].*?$', line).group()
</code></pre>
