$string =~ s/(!\])\n{2,}/
/gs;