I want to remove numbers from a string:
questionText = "1 ding ?"
I want to replace the number 1
number and the question mark ?
. It can be any number. I tried the following non-working code.
questionText.replace(/[0-9]/g, '');
See Question&Answers more detail:os