Replace string with variable value

Can we use Replace function with Variable value?
ex: String x=“hello name”
Replace name with the value in String variable y and put the result in String Variable Z



Sure, you can do it. You just need to use the variable instead of the text in field Replace by.

1 Like