code: def parse_format_order(cls, format_target):
          
          try:
              pattern = re.compile(settings.FORMAT_STRING_REGEX)
              return [match.group() for match in pattern.finditer(format_target)]# if None not in match.groups()]
          except TypeError:
              raise exceptions.FormatError('Format string %s is not a valid input type, must be <type str>' %
                                           format_target)
docs: Dissects the format string and gets the order of the tokens as it finds them l->r
              Splits on camel case or periods/underscores
              Modified version from this:
              http://stackoverflow.com/questions/2277352/python-split-a-string-at-uppercase-letters
  
          :param format_target: str, format string we want to swap to
          :return: list(str), list of the matching tokens