Escape Regex Metacharacters
You can use the Escape Regex Metacharacters activity to escape the metacharacters in the specified regular expression. This is useful if you need a search for specific string text to parse the regular expression as if it were plain text.
The output of this activity inserts a backslash (\) before each regex character in the source string. The inserted backslashes (\) suppress the special meanings of the regex metacharacters.
For example, if the specified regular expression is abc:][}{:, the escaped output would be abc:\]\[\}\{\:.
You can manually enter the Source String value or use variables such as the output from other workflow activities, sub-workflows, or atomic actions that occur earlier in the workflow.
Usage
Complete the following properties to use this activity:
- Source String - Enter the source string to be escaped or click the Variable Reference icon to choose a variable.