regular expression Python with at least 3 upper cases : <p>I need a regular Expression that Matches a string that mustn't contain digits. The string should have at least 3 upper cases. In addition, the string should contain 6 to 40 chars.</p>

<p>Here is my Approach, but it doesnt work as I expect it to:</p>

<pre><code>re.findall("\\n(?=(?:[^A-Z]*[A-Z]){3})[^0-9]{6,40}:\\n",text, flags=re.MULTILINE)

</code></pre>
