def parse(fmt, stri):
convdef = get_convert_dict(fmt)<EOL>keyvals = regex_formatter.extract_values(fmt, stri)<EOL>for key in convdef.keys():<EOL><INDENT>keyvals[key] = _convert(convdef[key], keyvals[key])<EOL><DEDENT>return keyvals<EOL>
Parse keys and corresponding values from *stri* using format described in *fmt* string.