去除数字之外的所有字符
const str = "xieyezi 23213 is 95994 so hansome 223333" const numbers = str.replace(/\d/g,"") console.log(numbers); // 2321395994223333