Jquery url replace
<p>How can I modify this:</p>

<pre><code>/services/type/single_dwelling/
</code></pre>

<p>to this:</p>

<p><code>/ajax/services/single_dwelling/development</code></p>

<p>Currently I have:</p>

<blockquote>
  <p>linkUrl =
  $(this).attr("href").replace(/(\/(services)\/)/,
  "$1ajax/");</p>
</blockquote>

<p>Which outputs:</p>

<pre><code>/services/ajax/type/single_dwelling/
</code></pre>

<p>I'm a little confused.</p>
