fix re.match