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