I want to recognize accented characters in words. I tried something like this:
def t_word(self, t): r\'[a-zA-Z0-9\\s’.\\-,\\+áéíóúñÑ]+\' com = t.value