import sysimport res = ''.join(sys.stdin.readlines())s = re.sub(r'(?m)^version extraction failed.*\n?', '', s) print s
version extraction failed blah blah blah But this line should stay *remove * this too End
But this line should stay *remove * this too End
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!