为什么错了,结果都一样?
<?php $subject = "my email is spark@imooc.com"; //在这里补充代码,实现正则匹配,并输出邮箱地址 $pattern = '/s(.+)/is'; preg_match($pattern,$subject,$matches); print_r( $matches[1]);
<?php $subject = "my email is spark@imooc.com"; //在这里补充代码,实现正则匹配,并输出邮箱地址 $pattern = '/s(.+)/is'; preg_match($pattern,$subject,$matches); print_r( $matches[1]);
2017-04-27
举报