def regex_findall(value, regex, multiline=False, ignorecase=False):
 flags = 0
 if ignorecase:
  flags |= re.I
 if multiline:
  flags |= re.M
 return re.findall(regex, value, flags)

def regex_findall ( value , regex , multiline = False , ignorecase = False ) : flags = 0 if ignorecase : flags |= re . I if multiline : flags |= re . M return re . findall ( regex , value , flags )
perform re .