in reply to Re^2: how do i get the 2nd line when the 1st is matched
in thread how do i get the 2nd line when the 1st is matched

Aye, the solution can be adapted to more complex input if required. Thanks for expanding on it.
  • Comment on Re^3: how do i get the 2nd line when the 1st is matched