请问下如何使用 preg_replace 的正则替换功能?
最终想得到 d80435 非常感谢!
$str="d80435/随机值.mmp";
$reg = '/\{(\w+)\}/'; //不知怎么写看教程这样写也不行!
print preg_replace($reg,'',$str);
随机值是由字母数字组成
推荐文章: