<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_61485"> <div class="blockcode"> <div id="code_n33"><ol> <li>function extract_emails_from($string) {</li> <li> //加入对#的判断,这个你懂的^_^ http://blog.ddian.cn</li> <li> preg_match_all("/[._a-zA-Z0-9-] (@|#)[._a-zA-Z0-9-] /i", $string, $matches);</li> <li> return $matches[0];</li> <li>}</li> </ol></div> <em onclick="copycode($('code_n33'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> 正規表示式, PHP, email</div> <div id="comment_61485" class="cm"> </div> <div id="post_rate_div_61485"></div> <br><br>