title: Replace href with jQuery, regular expression
body: <p>I have a bunch of href links that need to be replaced:</p>
  
  <pre><code>&lt;a id="link" href="http://localhost:8091/tabid/99/catid/8/page1.aspx"&gt;Page1&lt;/a&gt;
  &lt;a id="link" href="http://localhost:8091/tabid/98/catid/8/page1.aspx"&gt;Page1&lt;/a&gt;
  &lt;a id="link" href="http://localhost:8091/tabid/97/catid/8/page1.aspx"&gt;Page1&lt;/a&gt;
  </code></pre>
  
  <p>The href should be changed to:
  "http://localhost:8091/tabid/<strong>1</strong>/catid/8/page1.aspx"</p>
  
  <p>By searching I found:</p>
  
  <pre><code>$(document).ready(function () {
      $("#link").each(function () {
          this.href = this.href.replace("99", "1");
      });
  });
  </code></pre>
  
  <p>This should do the job. However, it only replaces one of the links. Could anyone help me with the regular expression here? I need to change all the numbers in <code>tabid/**/catid</code> to "<strong>1</strong>".</p>