Posted by NurAzije on 10/23/05 11:57
is it something like this :
************
<?
$data = file_get_contents('http://www.bihstudenti.com/kontakt.php');
$match = array();
preg_match_all('/^([a-zA-Z0-9_\-])+(\.([a-zA-Z0-9_\-])+)*@((\[(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5]))\]))|((([a-zA-Z0-9])+(([\-])+([a-zA-Z0-9])+)*\.)+([a-zA-Z])+(([\-])+([a-zA-Z0-9])+)*))$/',
$data, $match);
print_r($match[1]);
?>
**********************
But I still get this result in printout :
Array()
What to do more..
Any ideas
Navigation:
[Reply to this message]
|