So you just want to replace raute in the string with a # ?
You could do it with a dynamic variable in the agent script, or what is probably easier is doing it in the Flow when you pass that value as an input use
Replace(StringToReplace,ValueToReplace,NewValue)
Eg Replace(Flow.ContractRaute,"raute","#")

------------------------------
Anton Vroon
------------------------------
Original Message:
Sent: 11-02-2022 12:29
From: Thomas Repking
Subject: collecting in voice bot and display result in a script
Hello, I am collecting in a voice bot slot contract numbers consisting of 7 numbers and a # (e.g. 6547891#). The German word for # is Raute, so my regex looks like this: [0-9]{7}\Braute
I have the contract number transferred from the bot to an inbound flow and from there to a call script and there it is displayed as 6547891raute. How and where can I convert the contract number so that it displays in the call script as 6547891#?
#ArchitectureandDesign
------------------------------
Thomas Repking
Canada Life Group Services Limited
------------------------------