PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Take From Left, Middle or Right

Three actions that cut a piece out of a text: from the start, from the end, or from a position in the middle.

The String folder has three actions that cut a piece out of a text by position. Pick the one that matches where the piece is:

ActionWhat it returnsInputs
Take From LeftThe first n characters. Hello world, 5 โ†’ HelloInput String, Number of characters
Take From Middlen characters starting at a position (counted from 0). Hello world, 6, 5 โ†’ worldInput String, Index starting at, Extract length
Take From RightThe last n characters. Hello world, 5 โ†’ worldInput String, Number of characters

These actions were previously called String Left, String Mid and String Right.

Good to know

  • Asking for more characters than the text has is safe: you get what is there.
  • In Take From Middle, the start position must be inside the text, otherwise the step fails.
  • To take everything from a position to the end, use Substring. To find the position of a marker first, use Get Index.

On this page