title: Creating java regex to get href link
body: <p>Sorry if this has been asked before, but I couldn't find any answers on the web.  I'm having a hard time figuring out the inverse to this regex:</p>
  
  <blockquote>
    <p>"\"[^>]*\">"</p>
  </blockquote>
  
  <p>I want to use replaceAll to replace everything except the link.  So if I had a tag similar to this:</p>
  
  <blockquote>
    <p><code>&lt;p&gt;&lt;a href="http://www.google.com"&gt;Google&lt;/a&gt;&lt;/p&gt;</code></p>
  </blockquote>
  
  <p>I need a regex that would satisfy this:</p>
  
  <blockquote>
    <p>s.replaceAll(regex, "");</p>
  </blockquote>
  
  <p>to give me this output:</p>
  
  <blockquote>
    <p><code>http://www.google.com</code></p>
  </blockquote>
  
  <p>I know there are better ways to do this, but I have to use a regex.  Any help is really appreciated, thanks!</p>