Einzelnen Beitrag anzeigen

direktor

Registriert seit: 5. Apr 2014
22 Beiträge
 
#1

replace string in text files

  Alt 17. Jan 2020, 18:22
Hello,

I want to replace certain text in html files. Like I want to replace all text in html file from <header> to </header> and <footer> to </footer> - all text between beginning and ending of headers and footers. How can I do that? It's not stringreplace function. I need to replace all text between this header and footer tags. I can detect with Pos function where <header> begins and ends. So I get 2 integers I and J. I need to replace all text between I and J position of string occurance in text file. Any solutions? Thanks.
  Mit Zitat antworten Zitat