Text

This section describes operators belonging to the Text category.

This page discusses:

Convert String Case

Change letter's case following a given policy: 1. All in lower case ; 2. All in upper case ; 3. Title case ; 4. First letter in upper case.

Inputs

Name Type Description
String String Input string.
Conversion Integer Conversion policy to apply to input string.

Outputs

Name Type Description
Output String Output string.

Format Number

Converts a number into a specified string format .

Inputs

Name Type Description
Parameter Input parameter to be formatted (length, angle, real and etc).
Notation Integer String Number notation. Choose from: - 'auto' (default) Regular number notation for numbers having an absolute value between lower and upper bounds, and uses exponential notation elsewhere. Lower bound is included, upper bound is excluded. For example '123.4' and '1.4e7'. - 'fixed' Always use regular number notation. For example '123.40' and '14000000' - 'exponential' Always use exponential notation. For example '1.234e+2' and '1.4e+7' - 'engineering' Always use engineering notation: always have exponential notation, and select the exponent to be a multiple of 3. For example '123.4e+0' and '14.0e+6'.
Width Integer The minimum length of output string. Positive number mean padding from beginning of string. Negative number mean padding from end of string.
Precision Integer The number of numbers after decimal separator.
Upperexp Integer Exponent determining the upper boundary for formatting a value with an exponent when notation='auto'. Default value is 5.
Lowerexp Integer Exponent determining the lower boundary for formatting a value with an exponent when notation='auto'. Default value is -3.
Unit String Unit in which output should be formatted.
DecimalSeparator Integer —

Outputs

Name Type Description
Output String Formatted string of input parameter.

Format String

Format a string with a given list of parameters. Example: p1: "a string" p2: "a number" p3: 10mm str: "Format String operator can format {} and {}. It can convert {2} to {1}. Like {3}" res: "Format String operator can format a string and a number. It can convert a number to a string. Like 10mm".

Inputs

Name Type Description
String String Input string to be formatted. Use {} to represent a positional parameter and {n} to represent a numbered parameter in your input string.
Parameter List Parameters used to format the input string.

Outputs

Name Type Description
Output String Output string.

Includes String

Tests if the original string includes another string.

Inputs

Name Type Description
String String The original string.
Substring String The target string to be searched in original string.
Case Sensitive Boolean Match character with regard to case.

Outputs

Name Type Description
Test Result Boolean Result of test.

Index Of String

Returns the index of the first character of a substring in the original string.

Inputs

Name Type Description
String String Input string.
Substring String Target string to be searched in input string.
Case Sensitive Boolean Match character with regard to case.
All Boolean If true, returns all the indices where the given value is found. Else returns only the first one.

Outputs

Name Type Description
Index Integer Starts from 0, empty if not found.

Join Strings

Concatenate a list of string into one string with a given separator string.

Inputs

Name Type Description
List String A list of string to be joined.
Delimiter String Delimiter string to be put between input strings when join.

Outputs

Name Type Description
Output String Output string.

JSON Get Keys

List the first level keys of a JSON.

Inputs

Name Type Description
JSON String The JSON to parse.

Outputs

Name Type Description
Keys String List of first level keys of the JSON.

JSON Get Value

Get the value of a given key from a JSON string.

Inputs

Name Type Description
JSON String The JSON string to parse.
Key String The key or chain of keys of the value to extract. Examples:
  • key (value of "key")
  • object.key (value of "key" inside "object")
  • [*] (all objects inside an array)
  • [*].key (value of "key" for all objects inside an array)
  • arr[0].arr2[*] (all objects of "arr2" array inside first object of "arr" array)
.

Outputs

Name Type Description
Value String The JSON value extracted. Can be a list if the key is paired to an array of values.

JSON Set Value

Set the value for a given key into a JSON string.

Inputs

Name Type Description
JSON String The JSON string to parse.
Key String The key or chain of keys of the value to extract. Examples:
  • key (value of "key")
  • object.key (value of "key" inside "object")
  • [*] (all objects inside an array)
  • [*].key (value of "key" for all objects inside an array)
  • arr[0].arr2[*] (all objects of "arr2" array inside first object of "arr" array)
.
Value The value to set or replace at the given key.

Outputs

Name Type Description
JSON String The updated JSON with the new value inserted.

Match String

Retrives the result of matching a string against a regular expression. First result is the matching string, other results are the groups. Example: str: 01/02/2023 regex: ([0-9]{2})/([0-9]{2})/([0-9]{4}) res: - 01/02/2023 - 01 - 02 - 2023 pos: - 0 - 0 - 3 - 6.

Inputs

Name Type Description
String String String to match.
Regex String Regular expression string (based on ECMAScript syntax).
Case Sensitive Boolean Match character with regard to case.
Full Match Boolean False to search for a subpart of the input string, true for a match of the whole string only.

Outputs

Name Type Description
Matches String Results of regex matches.
Groups String Groups in each match results.
Match Position Integer Absolute position of the first character of match in the input string. Index starts from 1.
Group Positions Integer Absolute positions of each group in the input string. Index starts from 1.

Repeat String

Construct a new string by copying n times the original string, concatenated together.

Inputs

Name Type Description
String String Original string.
Repeat Number Integer Number of times that input string should be repeated.

Outputs

Name Type Description
Output String Output string.

Replace String

Replace the occurrences of an old string contained in the original string by a new string.

Inputs

Name Type Description
String String The original string.
Old String Old string to be replaced by new string.
New String New string used to replace old string.
Replace All Boolean If replace all occurrences of an old string in the original string.
Case Sensitive Boolean Match character with regard to case.

Outputs

Name Type Description
Output String Output string.

Slice String

Extract part of the original string specified by the start index and number of characters counted from start index.

Inputs

Name Type Description
String String The original string.
Start Index Integer Index of the first character in the original string. Starts from 0.
Count Integer Number of characters counted from the first character.

Outputs

Name Type Description
Output String Result of slice.

Split String

Split a string with a given separator string.

Inputs

Name Type Description
String String Input string.
Separator String Separator when splitting input string. Can contain multiple characters, but they are processed as a whole.
Allow Empty Boolean Specifies whether empty strings between separators must be returned.
Use Full Separator Boolean Use the entire separator string to split the input string. Otherwise, each character in the separator is treated individually as a delimiter.

Outputs

Name Type Description
Output List Output string.

Starts With String

Tests if the original string begins with a given sub string.

Inputs

Name Type Description
String String Input string.
String —

Outputs

Name Type Description
Test Result Boolean Result of test.

String Distance

Compares two strings and computes a distance between them. The distance is based on the number of changes required to transform one string to the other. Three distances modes are available : Damereau-Levenstein, Jaro, Jaro-Winkler. Damereau-Levenstein : returns the number and changes required for the transformation. So it returns 0 when the strings are equal. Jaro : computers a normalized distance. 1 means the strings are equal, 0 means they are totally different. Jaro-Winkler : adds a bonus when the two string have a common prefix.

Inputs

Name Type Description
First String String —
Second String String —
Mode Integer —
Case Sensitivity Boolean —

Outputs

Name Type Description
Result Real —

String Length

Returns the length of a string in the number of characters.

Inputs

Name Type Description
String String Input string.

Outputs

Name Type Description
Length Integer Number of characters in the input string.

String To Literal

Evaluate a string to convert it as a literal value (magnitude, boolean, angle, real, integer...).

Inputs

Name Type Description
String String String to evaluate.

Outputs

Name Type Description
Value Literal Literal value outputted from the evaluation of the input string.

Strip String

Removes the specified characters occurences from an input string.

Inputs

Name Type Description
String String Input string.
Char String String A string that contains characters to be removed from the input string.
Mode Integer Remove characters from leading, tailing, both leading/tailing, or all positions.

Outputs

Name Type Description
Output String Result string.

Substring

Extract part of the original string specified by start and end indexes.

Inputs

Name Type Description
String String Original string.
Start Index Integer Index of the first character of new string in the original string, starts from 0.
End Index Integer Index of the last character of new string in the original string.

Outputs

Name Type Description
Output String Result of substring extraction.

Trim String

Remove continuous spaces from the beginning or end of a string.

Inputs

Name Type Description
String String Input string.
Mode Integer Trim only leading spaces, tailing spaces or both.

Outputs

Name Type Description
Output String Output string.