Added flags to re.compile