toNumberList()

This function converts a text with numbers into a number list.

Bash
toNumberList(text, separators) #Output: Number list

Examples

Parser expression

Description

Bash
toNumberList("1, 3? 5; 7; 11; 13", ",?;")

This example returns the number list:

[1, 3, 5, 7, 11, 13]

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

text

text

Any text containing numbers in decimal representation (e.g. "1, 2, 3") , separated by the characters defined in the second parameter.

separators

text

Any separator character.

Output

This function returns a number list


(books) Use cases and examples