CREvans
01-20-2011, 11:10 AM
Have an interesting scenario where I'm wanting to parse a VBPro .bld file and for every vbscript step, check for the instance of a given line and if that line is present, to put a new line just below it, while maintaining the original line. Like this:
Original:
Line 1
Line 2
Line 3
Desired output, with "Line 2" as the instance line:
Line 1
Line 2
Added Line
Line 3
It looks like the search/replace function isn't going to do what I want, since that will replace the existing line, not add a line after it. I don't know if this is possible from within vbpro itself, or if I'll need to develop something external to parse the .bld file.
Thanks in advance!
Scott
Original:
Line 1
Line 2
Line 3
Desired output, with "Line 2" as the instance line:
Line 1
Line 2
Added Line
Line 3
It looks like the search/replace function isn't going to do what I want, since that will replace the existing line, not add a line after it. I don't know if this is possible from within vbpro itself, or if I'll need to develop something external to parse the .bld file.
Thanks in advance!
Scott