Can someone help me find the exact match and replace the text?
In my text document, I’ve below texts. I wanted to find an exact match the word (?PipinInstruction1) replace with “Hameed”
The same case for (?PipinInstruction15) replaces with “Hello”.
When I try to replace I got the below error to refer to screenshot. Also, I tried to find the exact match with regex still it’s matching with all the cases, can someone help out with this.
Actually, I am in the data table, and (*?PipinInstruction1) each row the value will change.
*?PipinInstruction1
*?PipinInstruction1 SOME TEXT
*?PipinInstruction15
*?PipinInstruction19 SOME TEXT
thanks for the response but still it’s replacing the below texts, it should not replace the below two as am replacing “Hameed” only for (?PipinInstruction1) not (?PipinInstruction15,*?PipinInstruction19 SOME TEXT)
*?PipinInstruction15
*?PipinInstruction19 SOME TEXT
The above expression returns string which is replaced target string to “Hammed”.
If you want to check the target string is contained in condition of IF activity, can you try IsMatch activity as the following?
It’s not worked it’s replacing as “hameed” everywhere “*?PipinInstruction1” in the txt file.
Do we’ve any alternative solution?
Actually, the concept is, am running in a loop from the data table, for example, I’ve 4 rows each row I’ve found an exact match from column A and replaced with column B value.
However, the problem is when run 1st iteration it’s replaced correctly, with the above solution you shared. still, it’s replaced as “hameed” for ro3# & row#4.