//请修改变量p的正则表达式,使他能够匹配str中的姓名 $p = '/name:([\w\s]+)/'; $str = "name:steven jobs"; preg_match($p, $str, $match); print_r($match);Array ( [0] => name:steven jobs [1] => steven jobs ) //?????? 来源:https://www.cnblogs.com/pansidong/p/11779552.html 标签 preg_match match