mmmh... change the input field separator $/?
or slurp the entire file and split by ^h?
In reply to Re^2: Search file for certain lines by pvaldes in thread Search file for certain lines by Jalcock501