Select from following answers:- "6abc67*uv3$%^78*(op23".replace(/[^\D]/g, "")
- "6abc67*uv3$%^78*(op23".replace(/[{0-9}]/g, "")
- "6abc67*uv3$%^78*(op23".replace(/[~{0-9}]/g, "")
- All Above
The \D matches a character that is not a numerical digit.So we have negated that one to get all other values except the numeric values.The same explanation follows for the other options.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator