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: Get a seq of Commandchain objects that match key 
docstr_tok: ["Get","a","seq","of","Commandchain","objects","that","match","key"]
code: def dispatch(self, key):
      """Get a seq of Commandchain objects that match key"""
      if key in self.strs:
          yield self.strs[key]
  
      for r, obj in self.regexs.items():
          if re.match(r, key):
              yield obj
          else:
              # print "nomatch",key  # dbg
              pass
  
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 4 for calling the StrDispatch obj's underlying member method code with example usage: obj.dispatch(key) without return types