$email_address_pattern="([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,6}";
$address= "abc@gmail.com";
$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(): 行 10 の /home/www/html/cusidevelopment/test.php の不明な修飾子 '+'
どうすれば解決できますか?
前もって感謝します