title: How do you parse a web page and extract all the href links?
body: <p>I want to parse a web page in Groovy and extract all of the href links and the associated text with it.</p>
  
  <p>If the page contained these links:</p>
  
  <pre><code>&lt;a href="http://www.google.com"&gt;Google&lt;/a&gt;&lt;br /&gt;
  &lt;a href="http://www.apple.com"&gt;Apple&lt;/a&gt;
  </code></pre>
  
  <p>the output would be:</p>
  
  <pre><code>Google, http://www.google.com&lt;br /&gt;
  Apple, http://www.apple.com
  </code></pre>
  
  <p>I'm looking for a Groovy answer.  AKA. The easy way!</p>