def _prefix_only_url_replace_regex(pattern):
 return re.compile(u'\n        (?x)                      # flags=re.VERBOSE\n        (?P<quote>\\\\?[\'"])        # the opening quotes\n        {}\n        (?P=quote)                # the first matching closing quote\n        '.format(pattern))

def _prefix_only_url_replace_regex ( pattern ) : return re . compile ( u'\n        (?x)                      # flags=re.VERBOSE\n        (?P<quote>\\\\?[\'"])        # the opening quotes\n        {}\n        (?P=quote)                # the first matching closing quote\n        ' . format ( pattern ) )
match urls in quotes pulling out the fields from pattern .