I'm trying to get all jpg image links in a string.
The links always appear in the form <img src="http://.../....jpg" within the string
preg_match_all('/<img\b[^>]*src\s?=\s?[\'"]([^\'">])[\'"][^>]*>/is', $string, $matches);
Thanks for the quick reply. Resolved.