add class to regex jquery
<p>I have this</p>

<pre><code>if( window.location.href == "http://localhost:3000/categories") {
     $("#container ul #all_categories a.categories-menu").css("font-weight","bold");
    }   
});
</code></pre>

<p>but I have a url with:</p>

<pre><code>http://localhost:3000/username/boards
</code></pre>

<p><strong>username</strong> is dynamic username e.g.</p>

<pre><code>http://localhost:3000/michael-21/boards
http://localhost:3000/Richard_10/boards
http://localhost:3000/Mary.50/boards
</code></pre>

<p>and change for each user.</p>

<p>How can do the same functionality but with this last url?</p>

<p>Thank you</p>
