in reply to Previous Line Matching Issues
Especially the updated version should also solve special needs like non-overlapping matches.
Your "previous line" is just an edge case.
Cheers Rolf
( addicted to the Perl Programming Language)