Character classes . any character except newline \w \d \s word, digit, whitespace \W \D \S not word, digit, whitespace [a…