Einzelnen Beitrag anzeigen

direktor

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

AW: replace string in text files

  Alt 18. Jan 2020, 19:57
I have another problem, how to pass the Space in string?

For example I want to find string 'this is just a test' and replace it with 'this is not a test'. Problem is Delphi will find only first word 'this' - everything after space is ignored. How do I make it find full string not that it stops at space? Or I'm using Delphi version which is too low? Should I use Unicode string compare?

'this is something else' - delphi will find stop here because 'this' is contained here
'this is just a test' - but I want to change this line of text

How to do?
  Mit Zitat antworten Zitat