for regex in regexes: # If a match, stop looping and move on if regex.match(line): break else: # If there is no match add it to our array of events to report events.append(line)