in reply to Re^4: Two line match
in thread Two line match

Understood.

perl -p0 -e 's/-----\n(\n|-----\n)*-----\n/-----\n/g' file.txt