Nov 29, 2012, 6:04 PM
Post #4 of 5
Using the double dot, .., operator that rovf mentioned, the code could be as follows.
Re: [testerV] How do I get everything between first and second match?
[In reply to]
Documentation for grep is here. Also, here is the documentation for the range (double dot) operator.
print grep /^startA/ .. /^stopA/, <DATA>;