\d, a digit[0-9] \D a non digit \w, a word character[a-zA-Z0-9_] \W a non word character \s, a white space char [\s\t\f\r\n] \S a non-whitespace char