Answer the question
In order to leave comments, you need to log in
How to find all emails in the body of an html document using regular expressions?
I don't understand why this code
<?
$page=file_get_contents("http://www.nash-kabinet.ru/");
$pattern="/[^@\s][email protected]\S++/";
preg_match_all($pattern, $page, $result);
print_r($result);
?>
Array ( [0] => Array ( [0] => '[email protected]'; [1] => e-mail:[email protected]
) )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question