Ejemplo n.º 1
0
 def getToken(self):
     textRegex = r'(?:(?:\w-\w)|\w)+'
     token = Regex(textRegex)('text')
     # token.leaveWhitespace()
     token.ignoreWhitespace()
     return token