in reply to Two line match

You have two line breaks between the '-----' lines, because you have an empty line in the middle (or so it seems). Your regexp should account for two \n and not only one.