title: regex c# optional group - should act greedy?
body: <p>having regex ~like this:</p>
  
  <pre><code>blablabla.+?(?:&lt;a href="(http://.+?)" target="_blank"&gt;)?
  </code></pre>
  
  <p>I want to capture an url if I find one... finds stuff but I don't get the link (capture is always empty). Now if I remove the question mark at the end like this</p>
  
  <pre><code>blablabla.+?(?:&lt;a href="(http://.+?)" target="_blank"&gt;)
  </code></pre>
  
  <p>This will only match stuff that has the link at the end... it's 2.40 am... and I've got no ideas...</p>
  
  <p>--Edit--</p>
  
  <p>sample input:</p>
  
  <p><code>blablabla    asd 1234t535    &lt;a href="http://google.com" target="_blank"&gt;</code></p>
  
  <p>expected output:</p>
  
  <p><code>match 0:</code></p>
  
  <pre><code>    group 1: &lt;a href="http://google.com" target="_blank"&gt;
      group 2: http://google.com`
  </code></pre>
  
  <p>I just want "http://google.com" or ""</p>