Archive: Function ReplaceBetween


Function ReplaceBetween
Hello

I found this ingenious function for the NSIS Installer.

ReplaceBetween:up:


For my purposes the function would have to be adapted however some more:
Momentarily the function searches downward from top to the bottom of the file, it means occur the markers several times, then also the text between them several times replaced. The code would have to be changed in such a way, everything between the first occurrence of the marker1 and the last occurrence of the marker2 is replaced. What has to be adapted in the program code?

Thank you

MilhouseNo1


This is quite difficult as you usually do not read lines backwards. However this may be doable using the functions provided in the user manual.

Stu