请问大神,问题在哪
<?php $subject = "my email is spark@imooc.com"; $pattern='/\s(\w+)@(\w+)\.(com|cn)/'; preg_match($pattern,$subject,$matches); print_r($matches[0]); //在这里补充代码,实现正则匹配,并输出邮箱地址 $subject = "my email is spark@imooc.com";
<?php $subject = "my email is spark@imooc.com"; $pattern='/\s(\w+)@(\w+)\.(com|cn)/'; preg_match($pattern,$subject,$matches); print_r($matches[0]); //在这里补充代码,实现正则匹配,并输出邮箱地址 $subject = "my email is spark@imooc.com";
2015-04-12
举报