Help with syntax in order to replace url by another
<p>Using jQuery, I am trying to automatically replace every...</p>

<p>www.mywebsite.com/blog/category/categoryname</p>

<p>by</p>

<p>www.mywebsite.com/blog/#categoryname</p>

<p>...in my page.</p>

<pre><code>$("a[href^='...']")
 .each(function()
 { 
  this.href = this.href.replace(...);
 }
);
</code></pre>

<p>Can someone help with the syntax please?</p>
