could be replaced with `sub_medias = re.findall('<en-media(.*?)type=["\']image/(jpeg|gif|png)["\'](.*?)>',raw,re.M)`