title: Javascript find replace content that has "/" in the search string
body: <p>I have javascript code which finds and replaces all instances of a value on a page. I am working with a CMS so unfortunately I need to work around lack of flexibility with the base HTML.</p>
  
  <pre><code>document.body.innerHTML = document.body.innerHTML.replace(/VALUE/g, new_value);
  </code></pre>
  
  <p>I want to find a replace a url link using the same process. How do I take into account for the"/" in the search and replace strings?</p>
  
  <p>Example:</p>
  
  <pre><code>find_str = "www.mysite.com/folder";
  replace_str = "app.mysite.com/page";
  document.body.innerHTML = document.body.innerHTML.replace(/find_str/g, replace_str);
  </code></pre>