|
|
file_out.write(line) | file_out.write(line) |
continue | continue |
if pattern.match(line) is None: | if pattern.match(line) is None: |
file_out.write(line) |
file_out.write(line.replace("\1", "")) |
| |
if __name__ == "__main__": | if __name__ == "__main__": |
description = "Filter out any lines that match a given PATTERN " + \ | description = "Filter out any lines that match a given PATTERN " + \ |