class_docstr: Dispatch (lookup) a set of strings / regexps for match.
  
  Example:
  
  >>> dis = StrDispatch()
  >>> dis.add_s('hei',34, priority = 4)
  >>> dis.add_s('hei',123, priority = 2)
  >>> dis.add_re('h.i', 686)
  >>> print(list(dis.flat_matches('hei')))
  [123, 34, 686]
docstr: Adds a target regexp for dispatching 
docstr_tok: ["Adds","a","target","regexp","for","dispatching"]
code: def add_re(self, regex, obj, priority=0):
      """Adds a target regexp for dispatching"""
  
      chain = self.regexs.get(regex, CommandChainDispatcher())
      chain.add(obj, priority)
      self.regexs[regex] = chain
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/strdispatch.py
imports: import re
  from IPython.core.hooks import CommandChainDispatcher
label_desc: Use image node_id 3 for calling the StrDispatch obj's underlying member method code with example usage: obj.add_re(regex, obj, priority) without return types