Okay, it's been a while...I still have a question. 🙂
The links you posted didn't really help me, as they all seem to refer to cases where the search string is completely known.
Here's the problem: I have a config.cfg file that contains a string:
resources_base c:\programs\blah\+d:\cd\
Now a user could have installed the program anywhere (or changed the path manually) and the only part that stays the same is the "resources_base" part. But I need to change the installation path of course, which is unknown.
EDIT: So what I need is something like this:
SearchAndReplace config.cfg "resources_base *" "resources_base newstring"
A wildcard. A joker. Nowhere in the docs could I find that.