Skip to main content

MatchRegex

This Script is part of the Common Scripts Pack.#

Deprecated

Use the MatchRegexV2 script instead.

Deprecated. Use the MatchRegexV2 script instead. Extracts regex data from a given text. The script supports groups and looping.

Script Data#


NameDescription
Script Typejavascript
TagsUtility

Inputs#


Argument NameDescription
dataThe text date from which to extract the regex.
regexThe regex to match and extract.
groupThe matching group to return. If no group is provided, the full match will be returned. The group value should start at 1.
contextKeyThe context key to populate with the result.
flagsThe regex flags to match. The default is "-gim".

Outputs#


PathDescriptionType
MatchRegex.resultsList of regex matches.string