code: def getPaddingNum(chars):
          
          match = PRINTF_SYNTAX_PADDING_RE.match(chars)
          if match:
              return int(match.group(1))
  
          try:
              return sum([PAD_MAP[char] for char in chars])
          except KeyError:
              msg = "Detected an unsupported padding character: \"{}\"."
              msg += " Supported padding characters: {} or printf syntax padding"
              msg += " %<int>d"
              raise ValueError(msg.format(char, str(PAD_MAP.keys())))
docs: Given a supported group of padding characters, return the amount of padding.
  
          Args:
              chars (str): a supported group of padding characters
  
          Returns:
              int:
  
          Raises:
              ValueError: if unsupported padding character is detected