求正则示例。rt------解决方案-------------------- $pattern = '/^(\/\*).*(\*\/)$/i';$data = '/* test */';$data = preg_replace($pattern, '\1\2', $data);