Home  >  Article  >  Backend Development  >  怎么正则出HTTP开头的JPG图片

怎么正则出HTTP开头的JPG图片

WBOY
WBOYOriginal
2016-06-13 12:36:17890browse

如何正则出HTTP开头的JPG图片?
我使用 simple_html_dom.php, 只会找出HTTP开头的图片,如何再加一个JPG结尾的判断?

foreach ($html->find('img[src^="http"]') as $element) 
 

或者
哪位给写个 preg_match_all 所有 HTTP开头的JPG图片?谢谢。

Statement:
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