in reply to Re^3: Two line matchin thread Two line match
But you can modifiy your regex: m/----(?:\n----)+/----/g