Skip to main content


This Script is part of the Filters And Transformers Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.5.0 and later.

Format patterns matched with regex. If the regex does not match any pattern, the original value is returned.

Example 1: value: user=john regex: user=(.*) output_format: name=\1 -> output value: name=john

Example 2: value: xxx=yyy regex: user=(.*) output_format: name=\1 -> output value: xxx=yyy

Script Data#

Script Typepython3
Tagstransformer, string
Cortex XSOAR Version5.0.0


Argument NameDescription
valueText to match against
regexRegex pattern to search
output_formatTemplate string to format patterns matched with regex
ignore_caseWhether character matching will be case-insensitive. Default is "false".
multi_lineProcess value in multiline mode. See more information on re.MULTILINE, see
period_matches_newlineWhether to make the '.' character also match a new line. Default is "false".
action_dtThe last action for each matched value to transform


There are no outputs for this script.