<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_65997"> <div class="blockcode"> <div id="code_yU8"><ol><li><?php<li> /**<li> desc:采集网页中的邮箱的代码<li> */<li> $url='http://www.xxx.net'; //要采集的网址 <li> $content=file_get_contents($url);<li> //echo $content;<li> function getEmail($str) {<li> //$pattern = "/([a-z0-9]*[-_.]?[a-z0-9] )*@([a-z0-9]*[-_]?[a-z0-9] ) [.][a-z]{2,3}([.][a-z]{2})?/i";<li> $pattern = "/([a-z0-9-_.] @[a-z0-9] .[a-z0-9-_.] )/";<li> preg_match_all($pattern,$str,$emailArr);<li> <li> return $emailArr[0];<li> }<li> print_r( getEmail($content));<li> ?></li></ol></div> <em onclick="copycode($('code_yU8'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> 사용방법, 이메일주소, php</div> <div id="comment_65997" class="cm"> </div> <div id="post_rate_div_65997"></div> <br><br>