Javascript RegExp Curly Brace and test Issue
<p>I want regExp to test for two 'Hello'-s and return true but it only returns false even though I cannot find anything wrong with my code. How do I fix this? Please also suggest what is wrong with the code.</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;script type="text/javascript"&gt;

var str ="Hello Hello";
var patt = /(hello){2}/gi;
var result =patt.test(str);
document.write("Returned value: " + result); 
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
