I am using the answers from this question How to replace plain URLs with links? but I want the links to be truncated. For example, if the link is longer than 25 characters, I want to show https://stackoverflow.com/questions/…
How can I call a slice or substring on a result from a regex?
You can do something like:
Though this won’t show the elipsis