Jquery help with matching
<p>I am having issues with my code. It is not the issue. It is just good to have feature. currently if you go to <a href="http://jsfiddle.net/6yuuu/" rel="nofollow">http://jsfiddle.net/6yuuu/</a> and click on one of the links, so if this link has children links, then it shows all links under the parent(all levels).</p>

<p>This is because I use matching from the beggining of the string</p>

<pre><code>if($href_sub.toLowerCase().indexOf($href.toLowerCase()) &gt;= 0)
        {
        $(this).css("display", "block");
        }
</code></pre>

<p>How do I write function that is shows only one level down at a time. (so when I click "Reding GLE's" it displays only: " 1.2.1", "1.4.2", "2.2.1", "2.4.1", "2.4.2", "2.6.1" and when I click on one of those link it shows next children of the element.</p>

<p>It will probably require some regex matching?</p>

<p>Thanks for your help.</p>
