• \d[0-9]
  • \D[^0-9]
  • \w[0-9a-zA-Z_]
  • \W[^0-9a-zA-Z_]
  • \s — Whitespace characters (including line breaks)
  • \S — Non-whitespace characters

Important

Be aware that \w includes _ (but not -)!