Hey, I am searching for a possibility to search keywords in a text file and replace the text between this keywords. Basically textfile:
... some text...
tag1originaltexttag2
...sometext
The idea is to search for tag1 and tag2 and substitute the text delimited by these. E.g: with applying a function like function[textfile,"tag1","tag2","newtext"]
... some text...
tag1newtexttag2
...sometext
I have tried several combinations of input output stream manipulations, Find, Position, etc., but didn't find an appropriate solution. Is there an easy function to accomplish this? Thanks in advance