let str = 'is24is1524'
let res = str.replace(/[A-Za-z]/g, '')
console.log(res);

相关文章: