this has to become ```s{://.*?(/|$)}{://$phost:$pport$1}```