Text Operations
Use the Text Operations action to perform different operations on text.
Complete the following steps to use the Text Operations action in your workflow:
1. Click and drag the Text Operations action under Operations to the canvas, place the pointer on the action, and then click or double-click the action. The Text Operations window opens.
2. Edit the Label, if needed. By default, the label name is the same as the action name.
3. In the Select Operation list, select one of the following operations, and perform its respective task:
Operation
Task
IndexOf—Returns the position of the first occurrence of the specified substring from the text.
a. In the Input field, enter the text or map an appropriate output of a previous action to provide the text.
b. In the Search for field, enter the text that you want to search for.
Match—Matches the specified text or regex with the specified input text.
a. In the Input field, enter the text or map an appropriate output of a previous action to provide the text.
b. In the Match Regex field, specify the regex pattern that must be matched against the specified input text.
c. Click Show additional fields.
d. In the Separator Regex Modifier list, select the appropriate regex modifier for the specified regex pattern.
Pad—Pads input text on the left and right sides if the text is shorter than the required length. Padding characters are truncated if they cannot be evenly divided by length.
a. In the Input field, enter the text or map an appropriate output of a previous action to provide the text.
b. In the Padding Length field, specify the required padding length.
c. Click Show additional fields.
d. In the String to Pad field, enter the string that you want to pad.
Replace—Replaces a pattern with the specified word.
a. In the Input field, enter the text or map an appropriate output of a previous action to provide the text.
b. In the Pattern field, enter the pattern in plain text or regex format that you want to replace. For regex patterns, do not include opening and closing escapes.
c. In the Pattern is Regex list, select true if the pattern that you provided is plain text or regex. The default is set to false.
d. Click Show additional fields.
e. In the Pattern Regex Modifier list, select the appropriate regex modifier for the specified pattern. Set this value only if you have set the value of Pattern is Regex to true.
f. In the Replace With field, specify the value with which you want to replace the specified pattern. Leave this field empty in case you want to delete the specified pattern instead of replacing it with other words.
Split—Splits the input text according to the specified separator.
a. In the Input field, enter the text or map an appropriate output of a previous action to provide the text.
b. In the Separator field, enter the separator value to split the input text. If the separator is a regex, then do not include the opening and closing escape.
c. In the Separator is Regex list, select true if the separator that you provided is plain text or regex. The default is set to false.
d. Click Show additional fields.
e. In the Separator Regex Modifier list, select the appropriate regex modifier for the specified separator. Set this value only if you have set the value of Separator is Regex to true.
Substring—Retrieves the substring from the text.
a. In the Input field, enter the text or map an appropriate output of a previous action to provide the text.
b. In the Start Position and End Position fields, specify the desired start and end positions of the substring.
Capitalize—Capitalizes the first letter of the specified input text.
Convert to Base64—Encodes the specified input text in Base64 format.
Deburr—Deburrs input text by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing diacritical marks.
Decode Base64—Decodes the specified Base64 formatted input text.
Escape HTML Entities—Converts &, <, >, ", and ' characters to their corresponding HTML entities.
LowerCase—Converts the specified input text to lowercase.
Trim—Removes leading and trailing white spaces from the input text.
UpperCase—Converts the specified input text to uppercase.
Unescape HTML Entities—Converts the &, <, >, ", and ' HTML entities to their corresponding characters.
URL Decode—Decodes the specified URI format string to a text string.
URL Encode—Encodes the specified text in a valid Uniform Resource Identifier (URI) format.
In the Input field, enter the text or map an appropriate output of a previous action to provide the text.
4. Click Done.
Output schema
Was this helpful?