How about not using a regular expression at all?
if string.startswith("ftp://") and string.endswith(".jpg"):
Don’t you think this reads nicer?
You can also support multiple options for start and end:
if (string.startswith(("ftp://", "http://")) and
string.endswith((".jpg", ".png"))):