Hey,
I'm trying to replace all non-anchor-tag-enclosed URLs within anchor-tag-enclosed URLs for a document. So given the string:
I have two urls for google: <a href="http://www.google.com/">google</a> and http://www.google.com/
I would like to replace it with this:
I have two urls for google: <a href="http://www.google.com/">google</a> and <a href="http://www.google.com/">http://www.google.com/</a>
Does anyone know a clean way to do this in Java?