Regex: Lazy matching in nested match group
<p>I'm having problems with the following Regex:</p>

<pre><code>I login with (CORRECT|INCORRECT (username|password|username and password)) credentials
</code></pre>

<p>Basically, what I want it to match is the following 4 strings only (which it does):</p>

<ol>
<li>I login with CORRECT credentials</li>
<li>I login with INCORRECT username credentials</li>
<li>I login with INCORRECT password credentials</li>
<li>I login with INCORRECT username and password credentials</li>
</ol>

<p>However, the match groups are as follows:</p>

<ol>
<li>1: CORRECT 2: </li>
<li>1: INCORRECT username 2: username</li>
<li>1: INCORRECT password 2: password</li>
<li>1: INCORRECT username and password 2: username and password</li>
</ol>

<p>I want the match groups as follows:</p>

<ol>
<li>1: CORRECT</li>
<li>1: INCORRECT 2: username</li>
<li>1: INCORRECT 2: password</li>
<li>1: INCORRECT 2: username and password</li>
</ol>