Metacharacter What It Matches
. Matches any character except a newline
[a-z0-9_] Matches any single character in set
[^a-z0-9_] Matches any single character not in set
\d Matches a single digit
\D Matches a single nondigit; same as [^0-9]
\w Matches a single alphanumeric (word) character; same as [a-z0-9_]
\W Matches a single nonalphanumeric (nonword) character; same as [^a-z0-9_]
|