title: string replace without href in javascript
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Test&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;a href="hello.html"&gt;hello&lt;/a&gt;
  &lt;script&gt;
  var str=document.body.innerHTML;
  document.body.innerHTML=str.replace(/hello/g, "hi");&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>In this code hello.html and hello will change hi.html and hi. I don't want to replace href="". How to write regular expression for that ?</p>