Node.js examples for String:Parse
First number located in the string
String.prototype.firstNumber = function () { var m;//from w ww .j a v a 2 s . c om if ((m = this.match(/\d+/)) !== null){ return m[0]; } };