title: Regular expression a little too greedy
body: <p>I am trying to capture a small subset of a document with this RegEx:</p>
  
  <pre><code>preg_match('/href="(.+?)".+?&gt;Keyword/s', $a, $b);
  </code></pre>
  
  <p>However, instead of just grabbing the <code>href=</code> immediately before the <code>Keyword</code>, it starts at the first <code>href=</code> in the document and goes <em>alllllll</em> the way down to the <code>Keyword</code>.</p>
  
  <p>How can I make it so it backtracks and only keeps the <code>href=</code> immediately before <code>Keyword</code>?</p>