in reply to Re^3: regexp look behind?
in thread regexp look behind?

Yes, thanks for clarifying the output. that was something I could not parse from the discription given in the original problem.

So take my original suggestion and instead of the if statement looking like I suggested make the print portion be  print "\n$_\n\n" if (same as code given).