This table summarizes matching character syntax.
. | A dot matches any character except \n. (Or any character.- See the s option in Regular Expression Options.) |
[aeiou] | Matches a single character in the specified list of characters. |
[^aeiou] | Prefix of ^ matches a single character not in the specified set. |
[0-9a-fA-F] | Use of – allows the specification of contiguous character ranges. |
\w | Word character. Same as [a-zA-Z_0-9]. |
\W | Nonword character. Same as [^a-zA-Z_0-9]. |
\s | Whitespace character. Same as [\n\r\t\f]. |
\S | NonWhitespace character. Same as [^ \n\r\t\f]. |
\d | Decimal digit. Same as [0-9]. |
\D | Nondigit. Same as [^0-9]. |