Text Formatter Block
The Text Formatter block provides a set of handy operations for string manipulation. All of the operations return a JSON with the result using the keyvalue
. The available options are:
Encode/Decode (Action)
Encode or decode a string using UTF-8, Hex, or Base64 encoding.- Input: String or variable to encode/decode
- To Encoding: Encoding type (UTF-8, Hex, or Base64)
JSON
Include
Determine whether one string can be found within another string.- Input: String or variable to search within
- Text: Text or variable to search for
JSON
URL Encode/Decode
URL encode or decode a string.- Input: String or variable to encode/decode, usually a URL with characters in query params that need to be encoded
- Operation: Encode or Decode
JSON
Upper Case
Convert all characters in a string to uppercase.- Input: String or variable to convert
JSON
Lower Case
Convert all characters in a string to lowercase.- Input: String or variable to convert
JSON
Random Text Generator
Randomly generate a 22-character long text. Example Output:JSON
Regex Fetch
Fetch data from the input using regular expressions.- Input: String or variable to perform regex on
- Regular Expression: Standard regex syntax
JSON
Split
Split text into a list.- Input: String or variable to split
- Delimiter: Character to split on
JSON
Join
Join a list into a single line of text. Input: Pieces of data to join from the data picker Separator: Character to place between the concatenated parts Example Input:JSON
JSON
JSON
Slice from Start
Slice a string from a specified start index. Input: String or variable to slice Start Index: Index at which to start the slice Example Input:JSON
JSON
JSON
Slice from End
Slice a specified number of characters from the end of a string. Input: String or variable to slice Number of Characters: Number of characters to remove from the end Example Input:JSON
JSON
JSON
Truncate
Convert a decimal number to a whole number. Input: Decimal number or variable to truncate Example Input:JSON
JSON