String Toolbox
UPPERCASE
Convert a string to UPPERCASE.
Example Usage
Would yield:lowercase
Convert a string to lowercase.
Example Usage
Would yield:Base64 Encode
Take input text and encode it to Base64 encoding.
Example Usage
Would yield:Base64 Decode
Take input text and decode it from Base64 encoding.
Example Usage
Would yield:URL Encode
Take input text and URL encode it.
Example Usage
Would yield:URL Decode
Take input text and URL decode it.
Example Usage
Would yield:Split (extract section)
Take input text and extract a section from it based on matching start and end text of the section, while optionally removing headers and footers. You must specifiy a unique start and end character set for this node to work.
Parameters
-
start: Find text to start the split.
-
end: Find text to end the split
-
removeHeaders: Remove detected Headers and Footers
Example Usage
Would yield:Split (on delimiter)
Take input text and split it by a specified delimiter into an array of values.
Parameters
-
delimiter: The delimiting string or regex on which to split the input text
-
outputJson: Output the split result as a JSON array (defaults to false)
-
variable: The base variable name to use for the array
Example Usage
Would yield:Regular Expression
Use a Regular Expression to modify or extract data from text. The match option must be a valid regex, starting with a forward slash and ending with a forward slash plus any regex flags, for example: /d+.d+/. In the regex escape all special characters with a single backslash. Use either the replace option to replace matched text, or the group option to extract text from the specified regex group number
Parameters
-
match: The regular expression
-
replace: The text to replace the match. Use this OR 'group'
-
group: The group to extract. Use this OR 'replace'
Example Usage 1
If you have a text that you need to replace with something else, you can use the following expression:
Which yields:Example Usage 2
Regex also supports extraction. For example, if you want to extract the email address in a text message, you can do so:
my name is [email protected]
{{ regex | match: "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}" | group: "0" }}
Example Usage 3
Regex also supports groups, so in case you want to get the last digits of a phone number, you can do so:
which will result in:JSON Escape
Escapes a string for use within a JSON object.