正则表达式 正则表达式就是用来提取字符串的,把匹配的字符串提取出来 let str = "ash222ahdfTT566dsfghsh1"; console.log(str.match(/d+/g));//打印数组[ '222', '566', '1' ]