Node.js examples for Regular expression:Validation
Is input number
isNumber: function(data){ if(typeof data === "number"){ return true; }else{/*from w w w . ja va 2 s . c om*/ return false; } },