Skip to content

String Toolkit

Develop mode

View as Markdown

Perform one string operation (split, join, substring, case change, regex match or replace, trim, pad or contains) without chaining Evaluate Expression steps.

Step library location: Logic

  • Split: Splits Input String wherever Delimiter matches and stores the parts as a JSON array, for example ["a","b","c"]. Limit caps the number of parts.
  • Join: Joins the values in Input List, a JSON array, into one string with Delimiter placed between them as plain text.
  • Substring: Returns the part of Input String from Start Index (included) up to End Index (not included).
  • Case Change: Converts Input String to Uppercase, Lowercase, Title Case (hello world becomes Hello World), Camel Case (helloWorld) or Snake Case (hello_world).
  • Regex Match: Looks for the first match of Pattern and stores a JSON object such as {"matched":true,"groups":["2026","10"]}. groups lists the capture groups in order and leaves out the whole match.
  • Regex Replace: Replaces every match of Pattern with Replacement.
  • Trim: Removes whitespace, or the characters in Trim Characters, from both ends of Input String.
  • Pad: Adds Pad Character to the Pad Side you pick until Input String is Target Length characters long.
  • Contains: Stores true if Input String contains Search String and false otherwise.
  • Normalising values that arrive inconsistently from an external system.
  • Extracting a fragment from a larger string without dropping into Execute Code.
  • Turning a delimited string into a JSON array you can loop over, or a list back into one string.
Field Type Need Default Notes
Operation Dropdown Selector Required Split String (enum). Options: Split, Join, Substring, Case Change, Regex Match, Regex Replace, Trim, Pad, Contains
Input String Auto-complete param expression field Optional None String. Shown for every operation except Join. Blank is treated as empty text.
Input List Auto-complete param expression field Optional None JSON array. Shown for Join. A JSON array of values such as ["a","b"]. Blank or [] joins to empty text.
Delimiter Auto-complete param expression field Optional None String. Shown for Split and Join. Required for Split, where it is a Java regular expression: escape characters such as . | ( [ to match them literally (\.). For Join it is plain text placed between values, and blank means no separator.
Limit Static input field Optional -1 Integer. Shown for Split. The most parts to return, with the last part holding the rest of the string. -1 or blank returns every part.
Start Index Static input field Optional None Integer. Shown for Substring, and required there. 0-based and included. A negative value counts back from the end. A value past either end is clamped instead of failing.
End Index Static input field Optional None Integer. Shown for Substring. 0-based and not included. Blank reads to the end. Negative values and values past either end work as for Start Index.
Case Mode Dropdown Selector Optional Uppercase String (enum). Options: Uppercase, Lowercase, Title Case, Camel Case, Snake Case. Shown for Case Change. Camel Case splits words on spaces, _ and -. Snake Case also splits camelCase words.
Pattern Auto-complete param expression field Optional None String (Java regular expression). Shown for Regex Match and Regex Replace, and required there. An invalid regular expression fails the step.
Replacement Auto-complete param expression field Optional None String. Shown for Regex Replace. Refer to capture groups as $1, $2 and so on. Blank removes the matches. A reference to a group that doesn’t exist fails the step.
Regex Flags Static input field Optional None String (comma-separated). Options: CASE_INSENSITIVE, MULTILINE, DOTALL. Shown for Regex Match and Regex Replace. Any other value fails the step.
Trim Characters Static input field Optional None String. Shown for Trim. Each character listed is stripped from both ends, so #* removes any # and *. Blank strips whitespace.
Target Length Static input field Optional None Integer. Shown for Pad, and required there. 0 or more. A string that is already long enough is returned unchanged.
Pad Character Static input field Optional (space) String (1 character). Shown for Pad. Exactly one character. Blank means a space.
Pad Side Dropdown Selector Optional Right String (enum). Options: Left, Right. Shown for Pad.
Search String Auto-complete param expression field Optional None String. Shown for Contains. Blank always returns true.
Ignore Case Toggle Button Optional false Boolean. Shown for Contains. When on, upper and lower case are treated as the same.
Field Type Need Default Notes
Output Parameter: Result Static/Dynamic Parameter Field Required StringResult String. Split stores a JSON array, Regex Match a JSON object, Contains true or false, and every other operation plain text.

Choose an Operation first. The step then shows only the fields that operation needs.

If a required field is empty or a value is invalid, for example a Pattern that is not a valid regular expression, the step fails with an error that names the operation and the field.

Example: a form sends a comma-separated list of email addresses. Split it with the Delimiter \s*,\s* to get a clean JSON array of addresses, then loop over the array to email each person.

Generated from step metadata (src/data/process-steps.json). Edit the metadata, not this page.