title: Java : replacing all URLs with anchor tags that aren't already in anchor tags
body: <p>I'm trying to replace all non-anchor-tag-enclosed URLs within anchor-tag-enclosed URLs for a document. So given the string:</p>
  
  <pre><code>I have two urls for google: &lt;a href="http://www.google.com/"&gt;google&lt;/a&gt; and http://www.google.com/
  </code></pre>
  
  <p>I would like to replace it with this:</p>
  
  <pre><code>I have two urls for google: &lt;a href="http://www.google.com/"&gt;google&lt;/a&gt; and &lt;a href="http://www.google.com/"&gt;http://www.google.com/&lt;/a&gt;
  </code></pre>
  
  <p>Does anyone know a clean way to do this in Java?</p>