Implement exclusive character classes and . in regular expressions.