title: Regex matching Google Cache url (matching entire href parameter when it contains a word)
body: <p><em>Disclaimer: I know that html and regex should not stand together, but this is an exceptional case.</em></p>
  
  <p>I need to parse Google Search results and extract cache urls. I have this in the page:</p>
  
  <pre><code>&lt;a href="/url?q=http://webcache.googleusercontent.com/search%3Fq%3Dcache:
  gsNKb7ku3ewJ:somedata&amp;ei=MyIIUtrZAcPX7AaVzIHwDg&amp;amp;ved=0CB8QIDAC&amp;amp;usg
  =AFQjCNGcnWfdzQiTKwyAMmI-M-xzxII5Ag"&gt;Cached&lt;/a&gt;
  </code></pre>
  
  <p>I tried simple stuff like: <code>href=[\'"]?([^\'" &gt;]+)</code> but it is not what I need. I want to extract a single parameter (<strong>q</strong>) from the <em>href</em>. I need to get:</p>
  
  <pre><code>http://webcache.googleusercontent.com/search%3Fq%3Dcache:gsNKb7ku3ewJ:somedata
  </code></pre>
  
  <p>So everything between "url?q=" and first "&amp;", when the contents contain word "webcache" in it.</p>