-
In JavaScript, which one is used to finding the non-whitespace characters?
-
- \S
- \w
- \d
- \s
- None of these
Correct Option: A
There are metacharacters defined in JavaScript. \S is used to find the non-whitespace character. \d is used for finding a digit. \s is used for finding whitespace character. \w is used to find word character. \W is used to find non word character.