var reg = /\d+/g; var text = “斯蒂234+56放的”; var ms = text.match(reg); console.log(ms) //["234", "56“]