added regex media patterns with tags