I'm writing a simple script to search for email addresses on a page and echo them to the screen. For some reason my eregi function is not working..
I would really appreciate any help. Thanks
$url = "http://www.domain.com/page.html";
$fp = fopen ("$url", "r");
while($line=fgets($fp,4096)) {
eregi("0-9a-z@0-9a-z\.[a-wyz]a-z?$",$line,$matches);
echo $matches[0];
echo $matches[1];
echo $matches[2];
echo $matches[3];
}
fclose($fp);
?>