I would perfer to use cut and paste to do this but I can't find a GUI to do this with. What I want to do is to find a multiple line block of code like
Exit Sub
Log_Handler:
then replace it with
GoTo RSLogRtn
Exit Sub
Log_Handler:
Basically it is just an insert, but I may want to replace whole line blocks of code at some time. How can this be accomplished. I tried using V-Grep but to no avail. It will only replace the line block with a string and you can't use expressions in the replace test.
RS is for input record separator which is new line character by default.
$0 is to for all fields.
err is just a variable that assigned the value of $0.