<?php
$input = <<<EOF
Sed ut perspiciatis mail-mail_mail+mail01.Mail@mail.mail.mail unde omnis iste
natus error sit voluptatem accusantium doloremque laudantium,totam rem aperiam,
eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur
aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia
dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi
tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut
enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit
laboriosam, nisi ut aliquid ex ea commodi consequatur?
mail-mail_mail+mail01.Mail@mail.mail.mail2 Quis autem vel eum iure reprehenderit
qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum
qui dolorem eum fugiat quo voluptas nulla pariatur?
EOF;
$regexp = "/[a-z0-9_+.-]+@[a-z0-9_+.-]+/i";
foreach($match[0] as $email){
echo $email."\n";
}
PD9waHAKJGlucHV0ID0gPDw8RU9GClNlZCB1dCBwZXJzcGljaWF0aXMgIG1haWwtbWFpbF9tYWlsK21haWwwMS5NYWlsQG1haWwubWFpbC5tYWlsIHVuZGUgb21uaXMgaXN0ZSAKbmF0dXMgZXJyb3Igc2l0IHZvbHVwdGF0ZW0gYWNjdXNhbnRpdW0gZG9sb3JlbXF1ZSBsYXVkYW50aXVtLHRvdGFtIHJlbSBhcGVyaWFtLCAKZWFxdWUgaXBzYSBxdWFlIGFiIGlsbG8gaW52ZW50b3JlIHZlcml0YXRpcyBldCBxdWFzaSBhcmNoaXRlY3RvIGJlYXRhZSB2aXRhZSAKZGljdGEgc3VudCBleHBsaWNhYm8uIE5lbW8gZW5pbSBpcHNhbSB2b2x1cHRhdGVtIHF1aWEgdm9sdXB0YXMgc2l0IGFzcGVybmF0dXIgCmF1dCBvZGl0IGF1dCBmdWdpdCwgc2VkIHF1aWEgY29uc2VxdXVudH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