fork download
  1. import sys
  2. import re
  3. s = ''.join(sys.stdin.readlines())
  4. s = re.sub(r'(?m)^(\s\s)(.*)\n?', '\g<2>\n', s)
  5. print s
Success #stdin #stdout 0.01s 7144KB
stdin
  This needs to be gone 
But this line should stay 
  remove  
  this too 
End
stdout
This needs to be gone 
But this line should stay 
remove  
this too 
End