Regular Expressions Java

Character Class Meta-Character            Matches
.                                         Any single character
\d                                        A digit [0-9]
\D                                        A nondigit [^0-9]
\s                                        A whitespace character [ \t\n\x0B\f\r]
\S                                        A nonwhitespace character[^\s]
\w                                        A word character  [a-zA-Z_0-9]
\W                                        A nonword character [^\w]