@Fox, эти регулярки я знаю, но простыня из которой парсить надо гораздо больше и с ненужными email-ми, суть в том что надо выдрать именно то что между:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
и
------ This is a copy of the message, including all the headers. ------
Составляю регулярку в конструкторе
This\ is\ a\ permanent\ error\.\ The\ following\ address\(es\)\ failed:\ \ (.+?)\-\-\-\-\-\-\ This\ is\ a\ copy\ of\ the\ message\,\ including\ all\ the\ headers\.\ \-\-\-\-\-\-
но не пашет она :(
А регулярка из зеннопостера
(?<=The\ following\ address\(es\)\ failed:)[\w\W]*?(?=------\ This\ is\ a\ copy\ of\ the\ message,\ including\ all\ the\ headers\.\ ------)
сразу отлавливавает на ура...