Hi I want to search something in the file which looks similar to this :
Start Cycle
report 1
report 2
report 3
report 4
End Cycle
.... goes on and on..
I want to search for "Start Cycle" and then pull out report 1 and report 3 from it.. My regex looks something like this
(Start Cycle .*\n)(.*\n)(.*\n)(.*\n)
The above regex select Start Cycle and the next three lines.. But i want to omit the thrid line from my result. Is that possible? Or any easier perl script can be done?? I am expecting a result like :
Start Cycle
report 1
report 3