def _get_number_from_fmt(fmt):
if '<STR_LIT:%>' in fmt:<EOL><INDENT>return len(("<STR_LIT>" + fmt + "<STR_LIT:}>").format(dt.datetime.now()))<EOL><DEDENT>else:<EOL><INDENT>fmt = fmt.lstrip('<STR_LIT:0>')<EOL>return int(re.search('<STR_LIT>', fmt).group(<NUM_LIT:0>))<EOL><DEDENT>
Helper function for extract_values,
figures out string length from format string.