title: jQuery replace all instances of a file path
body: <p>I need to replace all instances of a image file path on a page.</p>
  
  <p>Specifically, I'm having trouble escaping the forward slashes in the images' file path.</p>
  
  <p>So for instance, I need to replace the following:</p>
  
  <pre><code>src="/directory/directory/file.jpg"
  </code></pre>
  
  <p>with</p>
  
  <pre><code>src="directory/directory/file.jpg"
  </code></pre>
  
  <p>So, I need to get rid of the leading forward slash.</p>
  
  <p>I was wanting to use the str.replace as follows:</p>
  
  <pre><code>str.replace(/string/g, "other string");
  </code></pre>
  
  <p>But, I can't get it to escape the double quotes or the forward slash.</p>
  
  <p>Help?</p>
  
  <p>Thanks!!</p>