Basic Code Golf by twobit (no regexp)

import os
t=1
for x in os.read(0,1e3):t^='"'==x;os.write(1,x*(x>" "*t))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top