$pattern = '/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/';
if ($file = fopen("a.vcf", "r")) {
while(!feof($file)) {
$line = fgets($file);
if (preg_match($pattern, $line, $matches)) echo $matches[0]."\n";
}
fclose($file);
} 