refactoring regular expression: `type` attribute of <en-media>: /image\/(png|jpg|gif)/ -> /image\/([^”]+)/