#!/usr/bin/env python # Don't actually use this code. # It's just for http://domnit.org/2007/03/regex import re, sys pattern = re.compile(sys.argv[1]) while True: try: line = raw_input() if pattern.search(line): print line except EOFError: break