def _match_progs(value, progs):
 if (not progs):
  return True
 for prog in progs:
  if prog.search(six.text_type(value)):
   return True
 return False

def _match_progs ( value , progs ) : if ( not progs ) : return True for prog in progs : if prog . search ( six . text_type ( value ) ) : return True return False
check if value is matching any of the compiled regexes in the progs list .