正则获取字符串中的数字

var reg = /d+/g;

var text = “斯蒂234+56放的”;

var ms = text.match(reg);

console.log(ms) //["234", "56“]

原文地址:https://www.cnblogs.com/webmc/p/11649639.html