All pastes #986854 Raw Edit

Someone

public text v1 · immutable
·published 2008-04-16 00:54 UTC
rendered paste body
import re
f = open("filename", "w")
data = f.read()
data = re.sub("initialthing", "replaceitwith", data)
f.write(data)
f.close()