Escape Literal Characters
If the getter chain should treat a special character literally, escape it using a backslash. For parentheses, you only need to escape the closing parenthesis in a string.
-
The following example shows the how to escape the dot in the string parameter.
GetAddress().GetParam(a\.b\.c\.)
The agent executes GetParam("a.b.c.") GetAddress()
-
In the following example, the first dot is part of the string method parameter, which requires an escape character. The second and third dots don't require an escape character because they are used as method separators.
GetUser(suze\.smith).GetGroup().GetId()
-
The following example shows how to escape the opening and closing parenthesis in a search for "()" within a string.
GetString.Find(\(\))