Code: Select all
<?php
$link = $_POST["link"];
$foo = file($link);
$data = "";
$data = preg_grep("[\w-.]+?@([\w-]+?\.)+[\w]{2,}", $foo);
print_r($data)
?>But when i try to use it in php i get this error message:
Am i using it wrong?Warning: preg_grep() [function.preg-grep]: Unknown modifier '+' in /home/dahwan/public_html/emailextractor/emailextractor.php on line 6
Any help appreciated