Replace a text wiht specific value obtained within text
Posted: Fri Nov 02, 2012 3:07 pm
Hi Forum
I have a replacing problem. Say, that I have a text file, that occasionally contains sections similar to this below:
/COM, REAL 1
Mat, 1
R, 2
I would like to replace the number 2 in the last line (R, 2), with the number 1 obtained in from the first line after the text REAL 1, i.e. after the replacing it should appear as:
/COM, REAL 1
Mat, 1
R, 1
Is that kind of replacing be possible in TextPad?
Any help on the topic would be very much appreciated.
Kristjan
I have a replacing problem. Say, that I have a text file, that occasionally contains sections similar to this below:
/COM, REAL 1
Mat, 1
R, 2
I would like to replace the number 2 in the last line (R, 2), with the number 1 obtained in from the first line after the text REAL 1, i.e. after the replacing it should appear as:
/COM, REAL 1
Mat, 1
R, 1
Is that kind of replacing be possible in TextPad?
Any help on the topic would be very much appreciated.
Kristjan