I have this regex in PHP:
$regex = '/<img[^>]*'.'src=[\"|\'](.*)[\"|\']/Ui';
It captures all image tag sources in a string, but I want to only capture JPG files. I've tried to mess around with (.*) but I've only proven that I suck at regex... Right now I'm filtering the array but feels too much like a hack when I can just do it straight up with a proper match.