Multiple choice

With reference to the RegExp object which meta character used to find a NON WORD CHARACTER?

  1. w

  2. v

  3. W

  4. n

  5. D

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The W meta character is used to find a non-word character.'W' searches any character that is not a word character from the basic Latin alphabet. Equivalent to [^A-Za-z0-9_].