im stuck on this problem, i need to count the number of images in a string from a cms editor.
like the editor will return stuff like
<p><img title="" height="360" alt="" src="http://www.mysite.com/images/oh-no.jpg" width="229"></p><p><img title="" height="360" alt="" src="http://www.mysite.com/images/oh-no.jpg" width="229"></p><p><img title="" height="360" alt="" src="http://www.mysite.com/images/oh-no.jpg" width="229"></p><p><img title="" height="360" alt="" src="http://www.mysite.com/images/oh-no.jpg" width="229"></p>
and i need to count the number of images that are in there. there are 4 in there and i can only get one returned with preg_math_all for some reason.
anyone help me with a expression that will return 4 images? the images are variable so the expression needs to be on the <img > tag.