title: Difference between ".+" and ".+?"
body: <p>Can someone please explain the difference between <code>.+</code> and <code>.+?</code></p>
  
  <p>I have the string: <code>"extend cup end table"</code></p>
  
  <ol>
  <li>The pattern <code>e.+d</code> finds: <code>extend cup end</code></li>
  <li>The pattern <code>e.+?d</code> finds: <code>extend</code> and <code>end</code></li>
  </ol>
  
  <p>I know that <code>+</code> is one or more and <code>?</code> is one or zero.
  But I am not able to understand how does it work.</p>