ur'\#\#\s+<states-list>(?P<title>[^<\n]*)\n

def t_STATESHEADER(self, token):
        ur'\#\#\s+<states-list>(?P<title>[^<\n]*)\n'
        title = token.lexer.lexmatch.group("title").decode("utf8")
        token.value = title
        token.lexer.lineno += 1
        return token