index: implement "character classes"