JAVA
with Friends
Monday, August 13, 2012
REGEX for number greater than zero
var nre= /^[1-9]+[0-9]*$/;
var regexp = new RegExp(nre);
if(regexp.test(val)){
alert(“Number is greater than zero.”)
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment