Mosestycoon
10th February 2003 19:11 UTC
How to exclude " in search and replace function
Is there a special character which has to be included when using the search an replace function?
I need the possibility to read/write a file, search for a string (e.g. __include_path__) and replace it like this: include_path = ".;$INSTDIR\path\to\dir\"
Using this as-is results in errors (something like too many parameters for function)
Thx in advance
Chris
kichik
10th February 2003 19:42 UTC
I hope I got what you are looking for right... If you want to include a quote sign (") in a string just quote the entire string with another quote type such as a single quote - '.
For example:
FileWrite
$0'A"string",ifyouknowwhatImean...'
Mosestycoon
10th February 2003 20:47 UTC
Quote was the word I tried to describe, right :-)
I think that describes what I was looking for.
I want to replace a string in an ascii-file at installation-time. The Installationpath will be written to the file an in this case it needs 'QUOTES'
Thx, I give it a try...