(?s).*?(images.*?jpg).*?

Options: ^ and $ match at line breaks

Created with RegexBuddy