url requires slash at end regex_replace filter

I’m trying to create a template which contains a URL and must always have a / on the end. So if jenkins_master_url is ‘https://xyz.com’ ansible must add a /

If someone could help me with the regex_replace I’d be most grateful:

{{ jenkins_master_url|regex_replace(‘??’) }}

Hi