HighlightWords

Highlight words inside a given text.

python · Base

Details

IDHighlightWords
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775

README

Highlights words inside a given text.

Script Data


Name Description
Script Type python
Tags -

Inputs


Argument Name Description
text The input text to highlight the words in.
terms Terms to highlight in the text. Can be words or sentences (without commas “,”). Note: if you use a sentences and word, the word shouldn’t be as part of a sentence. For example, “thank,thank you” is an invalid input. (Comma-separated value).

Outputs


There are no outputs for this script.

commonfields:
  id: HighlightWords
  version: -1
name: HighlightWords
script: ''
type: python
subtype: python3
tags: []
comment: Highlight words inside a given text.
args:
- name: text
  required: true
  description: The input text to hightlight the words in.
- name: terms
  required: true
  description: Terms to hightlight in the text. Can be words or sentances (that does not includes comma). Notice that if you used a sentances and word, the word shouldn't be as part of a sentance, for example "thank,thank you" is invalid input. Comma-separated value.
scripttarget: 0
tests:
- HighlightWords_Test
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10404775