https://docs.espocrm.com/user-guide/...sions/#replace

(Please note, I mistakenly used Complex Expression instead of Formula, however there...