ss = """qslkjqskqsdhf
REPLACE ANYTHING IN HERE
2135468761265
"""
reg = re.compile('(?<=#start)(\r?\n)(.*?)(?=\r?\n#end)', re.DOTALL)
Find and replace everything between two placeholders with the contents of a variable