Handling Special Characters

This section relates to how the SearchReplaceTask works when handling special characters in the orchestration plugin.

Search and replace not working for special characters.

Search replace not showing in deployment log file and not updating target.

For example:

DEFAULT-ui.stg.bridged.2.2.XMS.3.rar::<instance>STG-\[mvhost02\]</instance> <instance>STG-[mvhost01]</instance>

This should be changed to:

DEFAULT-ui.stg.bridged.2.2.XMS.3.rar\:\:<instance>STG-\\[mvhost02\\]</instance> <instance>STG-[mvhost01]</instance>

Special characters need to be escaped twice, as the first escape is removed by the interpreter looking for the delimiter on the line

Similarly, to search and replace with a backslash character "\", the latter will have to be escaped as such "\\". However the escaping character will also have to be escaped, which means that to insert a single "\" character, four backslashes, "\\\\", will be required.

Further details can be obtained here.