例如:string=cd 12cmd true,如何能够提取出12这个数?
let str1 = "sfjls1232321slkdfj"; let res1 = str1.match(/([\d]+)/); console.log(res1, res1[1])
指定字符是哪个?cmd么?