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