How to recognize accented characters with raw string regular expressions in PLY?

前端 未结 0 1399
无人及你
无人及你 2020-12-16 07:51

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题