I have a .txt document in which there are several strings.
In the .txt, there are several “Value” and “Code” fields and there are also several random strings between the different “Value” and “Code” fields.
How can I remove all strings between “Value” and “Code” in this whole .txt?
I’ll leave here the txt I’m using to understand it better ex.txt (481 Bytes)
Based on the above txt, the final result should look like this: ex_done.txt (304 Bytes)
Would be like this:
Read Text File → outText
Assign: outText = System.Text.RegularExpressions.Regex.Replace(outText,"(?<=Value:)(.*?)(?=\n)","", System.Text.RegularExpressions.RegexOptions.None)
Write Text File