I have a long text, im using the .replace to replace text in a file. :
if “>PRESS AREA” in filedata :
filedata = filedata.replace(’>PRESS AREA’,’>PRESS’)
but since the bloc of text that i want to replace is sometime very long and that i dont want to have this text in my python file i would like to replace the contain between two tag.
for example this is my text :
'‘text beginning : blablabla blablaba text end. ‘’
here the two tags would be ‘text beginning’’ and ‘‘text end’’ and i would like that what is inside (blablabla etc) get replace ,
thank you !