title: Non greedy regex is not working as expected
body: <p>I need to take certain part from the string with regex non greedy approach. I am manipulating following string :</p>
  
  <pre><code>&lt;a href="/guidance/"&gt;Hi&lt;/a&gt; &lt;/li&gt;&lt;li  &gt; &lt;a href="/news/institutional/2012/05/000001asdf"&gt;Thanks&lt;/a&gt;
  </code></pre>
  
  <p>from which I need to get :</p>
  
  <pre><code>&lt;a href="/news/institutional/2012/05/000001asdf"&gt;Thanks&lt;/a&gt;
  </code></pre>
  
  <p>I've been trying with following regex : </p>
  
  <pre><code>&lt;a.*?news/.*?/(\d{1,4}\/[01]?\d)?.*?&lt;/a&gt;
  </code></pre>
  
  <p>but it gets all string instead of part of string mentioned above.As far as I understand <code>.*?</code> capture shortest match but it's not working as expected.</p>