Automatic search/replace on all messages always

Hi there,
I am wondering how I should go forward (if possible) to try to do the following:
What I want:
Whenever someone types a predefined text (In my case MYPROJECT-XYZK , where XYZK is an integer) to transform that automatically to a link (in my case www.jira.com/myorg//browse/MYPROJECT-XYZK ).

It wouldn’t be bad to do that also retroactively for existing messages, but that is not a requirement.
What relevant functionality (bots, integrations, apps) could be used to do that?