Javascript Regular Expressions Match Any Numeric Characters

Description

Javascript Regular Expressions Match Any Numeric Characters

var reg = /\d+/; 
reg.test("123"); // true 
reg.test("33asd"); // true 
reg.test("5asdasd"); // true 
reg.test("asdasd"); // false 



PreviousNext

Related