Skip to main content

vTextSubSplit

Returns a substring of a string The "Pattern" text field uses Lua Patterns to parse the string into a JSON like Array object. Additional information about patterns can be read in the Lua manual. The portion of the pattern you want to return should be placed inside a pair of parentheses characters "(" and ")". If you wanted to return all of the characters from the input string you would use a Pattern of: (.*) If you had a list of single word objects that were comma separated like: Apple;Orange,Pear,Mango Then you could break the text down into individual objects using a Pattern of: (%a+),- The output would be formatted as: \{"size":4,"array":["Apple","Orange","Pear","Mango"]\} If you had a string with an IPv4 style IP address in it like "192.168.1.1", you could break the text down into individual digits groupings using a Pattern of: (%d+) The output would be formatted as: \{"size":4,"array":["192","168","1","1"]\}

Core / TextText
vTextSubSplit node

Parameters​

ParameterTypeDefaultDescription
TextText—The source string to split into an Array.
PatternText—Lua pattern with the capture group (...) defining what each split item returns.
Show InputInteger1.0Reveals the wire for the Text connection in the Flow view.