Einzelnen Beitrag anzeigen

direktor

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

AW: replace string with spaces?

  Alt 19. Jan 2020, 12:16
Try this:

tmpstr.loadfromfile('index.html);
StringReplace(tmpstr.Text,'Electronics online shop','Electronic offline brick shop',[rfReplaceAll]);

This code will result in replacing every string that begins with word Electronics, because it can't handle spaces. I want to replace only exact string 'Electronics online shop' with spaces included.
  Mit Zitat antworten Zitat