How can I check if a number has a - as its start value using javascript?
<p>I tested the following code and it returned me false when I expected it to be true..How can I fix this and why it's returning me false?</p>

<pre><code>&lt;script type="text/javascript"&gt;

 var str3 ="-12346dsfs56";
var reg4 =/^(-{1})\d+$/;
alert(reg4.test(str3));
&lt;/script&gt;
</code></pre>
