<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_45656"> <div class="blockcode"> <div id="code_QZr"><ol> <li> <li> <?php <li>/**</li> <li>* 验证邮箱格式</li> <li>* edit: bbs.it-home.org</li> <li>*/</li> <li>$email="testgdy_007@163.com"; </li> <li>if (preg_match("/[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-z]{2,4}/",$email,$mail)){ </li> <li> echo 'yes<br>'; </li> <li>}else{ </li> <li> echo 'no<br>'; </li> <li>} </li> <li>echo "\$email??".$email.""; </li> <li>echo "\$mail??".$mail;</li> <li>?></li> </ol></div> <em onclick="copycode($('code_QZr'));">复制代码</em> </div> </td></tr></table> <div id="comment_45656" class="cm"> </div> <div id="post_rate_div_45656"></div> <br><br>