答案有多余
<?php
$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$pattern='/[\w]+@\w+\.\w+/';
preg_match($pattern,$subject,$matches);
echo $matches[0];
答案有多余
<?php
$subject = "my email is spark@imooc.com";
//在这里补充代码,实现正则匹配,并输出邮箱地址
$pattern='/[\w]+@\w+\.\w+/';
preg_match($pattern,$subject,$matches);
echo $matches[0];
2014-08-19
举报