Original question below but having done further testing is more fundamental
How can I use variables in the String replacement part e.g.
{{webresponse.body.name.replace("CHG","GHC")}} works
but VarOne=CHG and varTwo=GHC
{{webresponse.body.name.replace("{{varOne}}","{{varTwo}}")}} gives syntax errors.
How can I use variables in the replace part
Is is possible to do a string replacement on a smart variable that I have created in an automation script, using variables as the replacement string e.g.
Create Variable varLongStr
"Here is my number one text"
Create Variable varOne
"one"
Create Variable varTwo
"two"
and I want to modify varLongstr using something like
{{varLongStr}}.replace("{{varOne}}","{{varTwo}}")}}
but I can't get the syntax right