I have a string where I have the user should be able to specify xpaths that will be evaluated at runtime. I was thinking about having a the following way to specify it.
String = "Hi my name is (/message/user) how can i help you with (/message/message) ";
How can i replace the variables with the evaluated expression? Is there a better notation that will have less errors, since () may be used in xpaths.