Character classes usually contain the characters you want to match, but what if you want to explicitly not match a character? You can also define negated character classes, which use the ^
character. For example, the pattern t[^o]
will match any combination of "t" and one other character except for the single instance of "to".