def add_re(self, regex, obj, priority= <NUM_LIT:0> ):
chain = self.regexs.get(regex, CommandChainDispatcher())<EOL>chain.add(obj,priority)<EOL>self.regexs[regex] = chain<EOL>
Adds a target regexp for dispatching