Skip to main content

ReplaceMatchGroup

This Script is part of the Common Scripts Pack.#

Returns a string with all matches of a regex pattern groups replaced by a replacement.

Script Data#


NameDescription
Script Typepython3
Tagstransformer
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
valueAn array of email addresses to be filtered by domain.
regexA regex pattern who's groups to be replaced by the replaceWith argument.
replace_withThe replacement string.

Outputs#


There are no outputs for this script.