Negated character class

  • \D
  • \W
  • \S

  • [^abc] matches any one character that is not 'a', not 'b' and not 'c'.
  • \D not digit [^\d]
  • \W not word character [^\w]
  • \S not white space [^\s]