Isn't this code snippet for checking digits supposed to return false?
<p>This is to check only digits in a string.. It's returning true when I expected to return me a false..
How can I fix this and why it's returning me a true?</p>

<pre><code>  &lt;script type="text/javascript"&gt;
      function test()
var str2 ="s123s";
var reg3 =/\d/;
alert(reg3.test(str2));
}
&lt;/script&gt;
</code></pre>
