Operators

Operators are used to manipulate text from data extractors. In order to work with the operators, use the following syntax: <Data Extractor(Operator, inputs…)>. For example, if we want to remove the word “hello” from a file that is called “hello world” we can write the following:
<File Name(Remove,hello)>.

Each operator have different number of inputs, some operators may have none.

Replace

Replaces text with different text.

Syntax: (Replace, What, With) Inputs:     What: Text to search.     With: Text to insert instead of the searched text. The Replace operator removes all occurrences of the searched text. It is case sensitive.

Remove

Removes text.

Syntax: (Remove, What) Inputs:     What: Text to search and remove. The Remove operator removes all occurrences of the searched text. It is case sensitive.

Regex Match

Captures a single match in the text using a regular expression.

Syntax: (RegexMatch, Regular expression) Inputs:     Regular expression: The regular expression to match. In case there is more than one match, the first one will be used.

Example

If the file name is ‘SomeTvShow.S01.E03’ you can extract the season number with the following command: (?<=\.[S])[0-9]{2} It will search for ‘.S’ in the file name, and will take the 2 digits that follow it, in this case it will be ‘01’. Note that this is only an example and not necessarily the best way of achieving the results.

Regex Match All

Captures all matches in a text using a regular expression and concatenate them.

Syntax: (RegexMatchAll, Regular expression) Inputs:     Regular expression: The regular expression to match. In case there is more than one match, all the matches will be concatenated.

Example

If the file name is ‘SomeTvShow.S01.E03’ you can extract the season number and the episode number and concatenate them as following: [0-9]{2} It will search for groups 2 digits in a row and concatenate them. The result will be ‘0103’. Note that this is only an example and not necessarily the best way of achieving the results.

RegexReplace

Replaces text with different text by using a regular expression for searching.

Syntax: (RegexReplace, Regular expression, With) or (RegexReplace, Regular expression, With, Count) Inputs:     Regular expression: The regular expression to search.     With: The text to insert instead of the occurrences of the matched text.     Count: The maximum number of replacements. If the Count is larger than the number of the occurrences, all of them will be replaced.

ToLower

Changes the text to lowercase.

Syntax: (ToLower)

ToUpper

Changes the text to uppercase.

Syntax: (ToUpper)