Simple regular expression modification to match only images
How can I edit the following regex 

    /(?<=src=")(.*?)(?=")/ui

to get only the matches that ends to jpeg, png, gif like the one below?


    !http://.+\.(?:jpe?g|png|gif)!Ui

Thank you
Simple regular expression modification to match only images
===

How can I edit the following regex 

    /(?<=src=")(.*?)(?=")/ui

to get only the matches that ends to jpeg, png, gif like the one below?


    !http://.+\.(?:jpe?g|png|gif)!Ui

Thank you