echo "$bts = preg_replace(\"/([^><]*)thread-([^><]*)-([^><]*).html/\", \"\\2\", \$bts);";这样输出$bts = preg_replace("/([^><]*)thread-([^><]*)-([^><]*).html/", "\2", $bts);少了一个斜杠这个是我喜欢输出的
$bts = preg_replace("/([^><]*)thread-([^><]*)-([^><]*).html/", "\\2", $bts);需要添加什么
$bts = preg_replace("/([^><]*)thread-([^><]*)-([^><]*).html/", "\\2", $bts);需要添加什么
解决方案 »
- 调用WPS和ms office的COM组件时打开word文档问题
- 求助,为何我在xp下可以发邮件,而在windows2003下却发送邮件失败?
- 关于expects parameter 1 to be resource, null given in的警告
- session 丢失的问题,在线等
- 在 WindowsXP + PHP5 + Apache2 环境中连接 PostgreSQL 时错误,如何如何解决?
- 如果用PHP来检测文本的编码,比如如何检测文本是UTF-8编码或者GB2312编码
- smarty,phplib,adodb我該用哪個好?
- 有做过知识管理方面的软件吗我现在这做能给我提供个思路吗谢谢
- 我们有自己的服务器,进行了托管,而且给我们了一个固定的IP,我
- -----> PHP专栏 斑竹留言板 <-----
- 别写程序了,都去办培训班吧
- php连接memcache和memcachedb太多失败连接了,有办法么
echo "$bts = preg_replace(\"/([^> <]*)thread-([^> <]*)-([^> <]*).html/\", \"\\2\", \$bts);";
echo "$bts = preg_replace(\"/([^> <]*)thread-([^> <]*)-([^> <]*).html/\", \"\\\\2\", \$bts);"; echo会自动删除转义字符\