PHP正则表达式如何反向引用?

<?php
$str = "201309/22/120711ndvh1pkk1mmevy18.jpg";
$mode = "/(\d+)\/(\d+)\/(\w+)\.(\w+)/i";
$replace = "\1";
echo preg_replace($mode,$replace,$str);
?>
正确是写法应该是?

幕布斯7119047
浏览 949回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP