How to select all elements who has id, appropriating to regular expression
<p>I need to count all elements who has id like 'hi*'.</p>

<p>For example, if we have markup below:</p>

<pre><code>&lt;div id="hi1"&gt;&lt;/div&gt;
&lt;div id="hi2"&gt;&lt;/div&gt;
</code></pre>

<p>Num value has to be '2'.</p>

<p>In the web I have found this:</p>

<pre><code>var num = $('.insttip:regex(id,'+ id[0] + '*').length;
</code></pre>

<p>But this is not working :(
Thank you!</p>
