Skip to main content

Substring

Extract and replace substrings.

✂vTextSubReturnReturns a substring of a string This node is used to shorten a string by using the Start and End numeric fields to define the number of characters to remove. A positive number entered in the number input fields is used to define the removal of characters by starting the counting process at the left side of the input string. A negative number in the number input fields is used to define the removal of characters starting on the right side of the input string. This added complexity makes it easier to remove elements like a 3 letter file extension using the negative number input ability to trim off characters starting from the end (right side) of a variable length text string in a precise fashion.
✂vTextSubSplitReturns 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 Apple;Orange,Pear,Mango Then you could break the text down into individual objects using a Pattern of \{"size"["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 \{"size"["192","168","1","1"]\}