21,886
社区成员
发帖
与我相关
我的任务
分享
$str = '![测试一下](http://zbpcool.jz52.com/thuimg/thumb-10-400-300-0.jpg \"测试一下\")![我是描述](https://www.su1018.cn/content/templates/red_zui/images/2.jpg \"我是描述\")';
$pattern = '/https?:\/\/.*?.(jpg|png|gif)/ius';
preg_match_all($pattern, $str, $matches);
var_dump($matches[0]);