Find lowest matching string and insert line below
Posted: Fri Sep 14, 2018 3:41 pm
Hi,
I'm searching for a way/ or how can I build an expression to do something like this.
The file contains numerious lines with a specific string in it. Here I used 'PAR' This string is at the beginning of the line and has other data after it.
Below the last line found with PAR in it, I want to insert a new line with a specific, fixed text
PAR length= 300
PAR width= 600
PAR height= 18
PAR type= 3
Here I want to insert a new line with specific text.
Thanks in advance for everyone who can help me a bit further!
I'm searching for a way/ or how can I build an expression to do something like this.
The file contains numerious lines with a specific string in it. Here I used 'PAR' This string is at the beginning of the line and has other data after it.
Below the last line found with PAR in it, I want to insert a new line with a specific, fixed text
PAR length= 300
PAR width= 600
PAR height= 18
PAR type= 3
Here I want to insert a new line with specific text.
Thanks in advance for everyone who can help me a bit further!