ok, I have a string, of any length, which may have any number of html img tags in it, in the form of <img src="source.extension" alt="alt text">
so it could be
blah blah blah blah <img ...> blah blah blah blah <img ...> blah blah blah blah
What I want to get out of that string, is the sources of al the images, and the alt text, in an array.
I have tried so hard to write the regex function,
preg_match('/<img src=\"(.)\" alt=\"(.)\">/', $block, $matches);
but that only works if theres only one image.
can anyone help?