$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$pattern="/\w+@\w+\.\w+/";
preg_match($pattern,$subject,$matches);
print_r($matches);
哪里错了????????
$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$pattern="/\w+@\w+\.\w+/";
preg_match($pattern,$subject,$matches);
print_r($matches);
哪里错了????????
2014-11-04
举报