def check_service_url_with_proxy_campaign(service_url, campaign_url):
 regex = ((('^' + settings.DOMAIN) + 'login/?\\?next=') + campaign_url)
 return re.match(regex, service_url)

def check_service_url_with_proxy_campaign ( service_url , campaign_url ) : regex = ( ( ( '^' + settings . DOMAIN ) + 'login/?\\?next=' ) + campaign_url ) return re . match ( regex , service_url )
check if service url belongs to proxy campaigns: osf preprints and branded ones .