我有一段html代码
<\/p>\n
<\/p>\n"
我需要获取到src里面的图片地址,而且不是什么\/\/这样的东西的...
我使用了正则表达式后
$preg = '//i';
返回的内容是
"\\\"http:\/\/localhost\/wp-content\/uploads\/2016\/02\/20160212050312_659.png"
而我需要的是干净的图片地址...http://localhost/wp-content/uploads/2016/02/20160212050312_659.png
我该怎么办。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
http://php.net/manual/en/function.stripcslashes.php