StripChars
Strip set of characters from prefix and/or suffix e.g. StripChar value=~!!~www.mydomain.com~!~!~ chars=!~ will return www.mydomain.com
python · Filters And Transformers
Details
| ID | StripChars |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | transformer string |
README
Strip set of characters from prefix and/or suffix
e.g. StripChar value=~!!~www.mydomain.com~!~!~ chars=!~ will return www.mydomain.com
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer, string |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| value | Text to trim (e.g. “~!!~www.mydomain.com~!~!~”) |
| chars | Characters to stripped from the text (e.g. “!~”) |
Outputs
There are no outputs for this script.
args: - description: Text to trim (e.g. "~!!~www.mydomain.com~!~!~"). name: value required: true - description: Characters to stripped from the text (e.g. "!~"). name: chars required: true comment: |- Strip set of characters from prefix and/or suffix e.g. StripChar value=~!!~www.mydomain.com~!~!~ chars=!~ will return www.mydomain.com commonfields: id: StripChars version: -1 enabled: true name: StripChars script: '-' tags: - transformer - string timeout: '0' isllm: false type: python subtype: python3 tests: - stripChars - Test fromversion: 5.0.0 dockerimage: demisto/python3:3.12.13.10116658