I am trying to determine what is the best way to search and replace for some strings in a text file.
I was attempting to use the STR Replace
where the source string is {filename(c:\infile.txt)}
I then was going to use the substring to find the text and replace.
Does this search from from the beginning of line? Can I use regex? Does the entire file get searched?
I am not receiving a match. Trying to figure out why.
Advice is appreciated.
Rob
Search and replace text in file
Re: Search and replace text in file
Maybe you need to use {TextFile(c:\infile.txt)}I was attempting to use the STR Replace
where the source string is {filename(c:\infile.txt)}
If you want to use simple replacing of text you can use STR Replace action
If you want to use more complex search conditions you have to use RegExp Replace action
Oleg Yershov