pass 'i' flag on to re.compile()