Home > Backend Development > PHP Tutorial > php 正则 提取图片解决思路

php 正则 提取图片解决思路

WBOY
Release: 2016-06-13 13:28:37
Original
878 people have browsed it

php 正则 提取图片
$str = $arr['message'] = ' php 正则 提取图片解决思路
';
echo $str;
preg_match_all("/\ php 正则 提取图片解决思路 /ismUe", $arr['message'], $image2, PREG_SET_ORDER);
$temp = $aids = $existentimg = array();

print_r($image2);

上面是我写的代码,获取出来的图片路径是:

http://img.pconline.com.cn/images/upload/upc/tx/bbs6/1205/17/c1/11651138_1337240963850_0_1024x1024.jpg"/>


不知道怎么修正正则,求高手帮忙

------解决方案--------------------
preg_match_all("/\ php 正则 提取图片解决思路 /is", $arr['message'], $image2, PREG_SET_ORDER);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template