Findstr - Return only a regex match
<p>I have this string in a text file (<code>test.txt</code>):</p>

<pre><code>BLA BLA BLA
BLA BLA
Found 11 errors and 7 warnings
</code></pre>

<p>I perform this command:</p>

<pre><code>findstr /r "[0-9]+ errors" test.txt
</code></pre>

<p>In order to get just <code>11 errors</code> string.</p>

<p>Instead, the output is:</p>

<pre><code>Found 11 errors and 7 warnings
</code></pre>

<p>Can someone assist?</p>