我想用字符串替换字符串中除0-9之外的所有字符,使用Javascript.
为什么这个正则表达式不起作用?
"a100.dfwe".replace(/([^0-9])+/i, "")
javascript regex
javascript ×1
regex ×1