-1
$email_address_pattern="([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])[email protected]([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,6}";
$address= "[email protected]";
$length=strlen($address);
for($position=0;$position<$length;) {
$match=preg_split($email_address_pattern,strtolower(substr($address,$position)),2);
print_r($match);
if(count($match)<2)
break;
$position+=strlen($match[0]);
$next_position=$length-strlen($match[1]);
$found=substr($address,$position,$next_position-$position);
if(!strcmp($found,""))
break;
if(IsSet($addresses[$found]))
$addresses[$found]++;
else {
$addresses[$found]=1;
$position=$next_position;
}
}
我得到警告:使preg_split電子郵件模式
警告:使preg_split():未知的修飾詞 '+' 在/home/www/html/cusidevelopment/test.php在線10
我該如何解決它?
在此先感謝
要麼你更新的問題,或使其可編輯,以便其他人可以。因爲我認爲,有些東西仍然缺失 –