def parse_price(price_string):
return float(re.sub('<STR_LIT>', '<STR_LIT>', price_string))<EOL>match = re.match('<STR_LIT>', price_string)<EOL>if not match:<EOL><INDENT>raise ValueError("<STR_LIT>".format(<EOL>repr(price_string)))<EOL><DEDENT>return float(re.sub('<STR_LIT>', '<STR_LIT>', match.group('<STR_LIT>')))<EOL>
>>> parse_price('£16,000.00')
16000.0
>>> parse_price('-£16,000.00')
-16000.0