level 9
dws20057
楼主
$content='<p>abc</p><p><img src="http://localhost/abc/data/upload/ueditor/20150326/55141c958da88.jpg" title="5249_1942.jpg" alt="5249_1942.jpg" width="345" height="200" style="width: 345px; height: 200px;"/></p><p><img src="http://localhost/abc/data/upload/ueditor/20150326/55141cac7d370.jpg" title="114_b_1.jpg" alt="114_b_1.jpg" width="100" height="100" border="0" vspace="0" style="width: 100px; height: 100px;"/></p>';
我想取出里面所有的文件名,唯独不想要带下划线的那些文件名。
preg_match_all("/[a-zA-Z0-9_]+\.(?:jpg|gif|png)/",$content,$out);
我这样写得不到我要的结果,,
大神们能帮帮忙吗?
2015年04月28日 14点04分
1
我想取出里面所有的文件名,唯独不想要带下划线的那些文件名。
preg_match_all("/[a-zA-Z0-9_]+\.(?:jpg|gif|png)/",$content,$out);
我这样写得不到我要的结果,,
大神们能帮帮忙吗?