php - How to find all image tags using Regular Expressions -


I need to find all the pages of the HPL tag that are included in the page using the normal expressions of PHP

example

  & lt; Img src = "images / image.jpg" />  

My code

  preg_match ('/ & lt; img src = \ "images / /' tag, $ match);  

It is strange that it only finds the first event, the tag is not the rest of the page

use only the first occurrence, while preg_match_all finds all instances of pattern.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -