<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_61277"> <div class="blockcode"> <div id="code_QV2"><ol> <li>$email = "test@ansoncheung.com";</li> <li>if (preg_match('/^[^0-9][a-zA-Z0-9_] ([.][a-zA-Z0-9_] )*[@][a-zA-Z0-9_] ([.][a-zA-Z0-9_] )*[.][a-zA-Z]{2,4}$/',$email)) {</li> <li> echo "Your email is ok.";</li> <li>} else {</li> <li> echo "Wrong email address format";</li> <li>}</li> <li> </ol></div> <em onclick="copycode($('code_QV2'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> 정규식, 이메일</div> <div id="comment_61277" class="cm"> </div> <div id="post_rate_div_61277"></div> <br><br>