title: Jquery find and replace part of a URL?<a
body: <p>I am trying to do a find and replace throughout an entire page, and add some parameters to any URLs that contain some specified text. (i am speaking about hardcoded inline a href URLs)</p>
  
  <p>So for example, I want to replace any instances of this:</p>
  
  <pre><code>&lt;a href ="http://localhost/wordpress/"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>With</p>
  
  <pre><code>&lt;a href ="http://localhost/wordpress/?demo_mobile_site"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>I tried some replace function I found, but I cant get it to work with the forward slashes in the string.</p>
  
  <p>Any help on this would be appreciated. Thanks</p>