I\'m trying to write a regex to verify that an input is a pure, positive whole number (up to 10 digits, but I\'m applying that logic elsewhere).
Right now, this is t
var value = $('#targetMe').val(), re = /^[1-9][0-9]{0,8}$/; if (re.test(value)) { // ok }