code: def get_path_regex(self, path):
          
          for regex, func in self._regex_map:
              match = re.match(regex, path)
              if match:
                  return func(match)
  
          return None, None
docs: Evaluate the registered path-alias regular expressions