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