Javascript Regular Expressions Match Floating Numeric Characters

Description

Javascript Regular Expressions Match Floating Numeric Characters


var reg = /^[0-9]*.[0-9]*[1-9]+$/; 
reg.test("12"); // false 
reg.test("12.2"); // true 



PreviousNext

Related