title: Regex: text between first occurrence of two patterns
body: <pre><code>/url?q=http://it.wikipedia.org/wiki/Spider-Man_(film)&amp;sa=U&amp;ei=iavVUKuFGsrNswbz74GQBA&amp;ved=0CBYQFjAA&amp;usg=AFQjCNEth5YspFPWp6CInyAfknlEvVgIfA
  </code></pre>
  <p>I need to get just</p>
  <pre><code>http://it.wikipedia.org/wiki/Spider-Man_(film)
  </code></pre>
  <p>I tried with <code>\?q=(.*)&amp;</code>
  but it consider last occurrence of <code>&amp;</code>, so I get</p>
  <pre><code>http://it.wikipedia.org/wiki/Spider-Man_(film)&amp;sa=U&amp;ei=iavVUKuFGsrNswbz74GQBA&amp;ved=0CBYQFjAA
  </code></pre>
  <p><a href="http://rubular.com/r/yBiGIMQTUV" rel="nofollow noreferrer">http://rubular.com/r/yBiGIMQTUV</a></p>