import sys, repat = r'(.*?)'data = open(sys.argv[1]).read()m = re.search(pat,data)if m: print m.group(1)