最佳答案
我想从字符串中删除数字:
questionText = "1 ding ?"
我想替换数字 1
的数字和问号 ?
。可以是任何数字。我尝试了以下非工作代码。
questionText.replace(/[0-9]/g, '');