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
Post a Comment