How to put variable in regular expression match?
<p>I have</p>

<pre><code>var string1 = 'asdgghjajakhakhdsadsafdgawerwweadf';
var string2 = 'a';
string1.match("\/"+string2+"\/g").length;
</code></pre>

<p>So with this i want to find the appereance of <strong>a</strong>, but itn is not wirking, how i can put the variable wright ?</p>
