const string = "hello world 123"; // remove all digits from the string const newString = string.replace(/d/g, "") // "hello world "