ReplaceMatchGroup

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

python · Common Scripts

Details

IDReplaceMatchGroup
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagstransformer

README

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

Script Data


Name Description
Script Type python3
Tags transformer
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
value An array of email addresses to be filtered by domain.
regex A regex pattern who’s groups to be replaced by the replaceWith argument.
replace_with The replacement string.

Outputs


There are no outputs for this script.

commonfields:
  id: ReplaceMatchGroup
  version: -1
name: ReplaceMatchGroup
script: ''
type: python
subtype: python3
tags:
- transformer
comment: Returns a string with all matches of a regex pattern groups replaced by a replacement.
enabled: true
args:
- name: value
  required: true
  description: An array of email addresses to be filtered by domain.
- name: regex
  required: true
  description: A regex pattern who's groups to be replaced by the replaceWith argument.
- name: replace_with
  required: true
  description: The replacement string.
scripttarget: 0
dockerimage: demisto/python3:3.12.13.10404775
runas: DBotWeakRole
tests:
- No test - unit test
fromversion: 5.0.0