Select from following answers:- "6abc67*uv3$%^78*(op23".replace(/\D/g, "")
- "6abc67*uv3$%^78*(op23".replace(/[\D]/g, "")
- "6abc67*uv3$%^78*(op23".replace(/[^{0-9}]/g, "")
- All of the above

- All Above
\D matches a character that is not a numerical digit.The result is only the digits in a string.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator