📅  最后修改于: 2022-03-11 15:01:56.741000             🧑  作者: Mango
const string = "hello world 123";
// remove all digits from the string
const newString = string.replace(/\d/g, "") // "hello world "