lmartins
7/25/2014 - 11:08 AM

Extract the number at the end of a string

Extract the number at the end of a string

var re = /[a-zA-Z]+([0-9]+)/;
var result = re.exec("portsConfiguration23");
console.log(result[1]);