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.

Extract the strings matched to the patterns by doing backslash substitution on the template string. This transformer allow to specify multiple regex patterns and multiple match targets, and those can be given in the input value and the argument parameters.

Script Data#

Script Typepython3
Tagstransformer, string, entirelist


Argument NameDescription
valueList of regex or text for the pattern match.
regexA regex pattern to search (in Python).
textA match target text.
templateThe template text that will be returned for the output by doing backslash substitution to the patterns matched.
template_typeThe data type of the template.
value_takesWhich type of value takes from the value argument, 'text' (match target) or 'regex'.
flagsThe comma separated flags for pattern matching in regex. "dotall" (s), "multiline" (m), "ignorecase" (i) and "unicode" (u) are supported.
search_limitThe maximum limit for scanning patterns. (0 means unlimited)


There are no outputs for this script.