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