=?gb2312?B?yd89615w==?= <xxxxxxxxxx@163.com>
我想获取到 邮件信息 xxxxxxxxxx@163.com ,该如何操作?
=?gb2312?B?yd89615w==?= <xxxxxxxxxx@163.com>
我想获取到 邮件信息 xxxxxxxxxx@163.com ,该如何操作?
<?php
$a = "=?gb2312?B?yd89615w==?= <xxxxxxxxxx@163.com>";
$reg = "/([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)/";
echo preg_match($reg,$a,$result);
print_r($result);
?>
你自己试试哈,我也在学PHP,这是我的博客 http://www.pengray.com
$str="=?gb2312?B?yd89615w==?= <xxxxxxxxxx@163.com>";
preg_match('/<(.*)>/isU',$str,$aaa);
echo $aaa[1];
preg_match('/<(.*)>/isU',$str,$aaa);
echo $aaa[1];