StringToArray

Converts string to array. For example: `http://example.com/?score:1,4,time:55` will be transformed to `["http://example.com/?score:1,4,time:55"]`.

python · Filters And Transformers

Details

IDStringToArray
Languagepython
From Version6.0.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagstransformer

README

Converts string to array.
For example: http://example.com/?score:1,4,time:55 will be transformed to ["http://example.com/?score:1,4,time:55"].

Script Data


Name Description
Script Type python3
Tags transformer
Cortex XSOAR Version 6.0.0

Inputs


Argument Name Description
value The URL to transform.

Script Example

!StringToArray value="http://example.com/?score:1,4,time:55"

Human Readable Output

["http://example.com/?score:1,4,time:55"]

args:
- description: The URL to transform.
  name: value
  required: true
comment: "Converts string to array. \nFor example: `http://example.com/?score:1,4,time:55` will be transformed to `[\"http://example.com/?score:1,4,time:55\"]`."
commonfields:
  id: StringToArray
  version: -1
enabled: true
name: StringToArray
script: '-'
subtype: python3
tags:
- transformer
timeout: '0'
isllm: false
type: python
dockerimage: demisto/python3:3.12.13.10404775
fromversion: 6.0.0
tests:
- StringToArray_test