How to display a clean short link on the page

Hello everyone,

On my app, there is a profil page and every user is able to display a custom link.

The problem is that the link can be a bit long and not so redeable:

I would like to use the regex feature or find/replace to be able to display only this short clean link:

But with the same original destination when you click on it:

Anyone have idea on how to do that? I am a bit stucked.

Thanks in advance!