Page 1 of 1

Search and replace text in file

Posted: Sat Aug 02, 2014 1:50 am
by rjkantor
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

Re: Search and replace text in file

Posted: Sat Aug 02, 2014 12:52 pm
by Oleg
I was attempting to use the STR Replace
where the source string is {filename(c:\infile.txt)}
Maybe you need to use {TextFile(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